-
Notifications
You must be signed in to change notification settings - Fork 64
Open
Description
Hey,
just followed this article here https://pavlakis.dev/posts/upgrade-to-friends-of-behat-symfony-extension/
to get behat up and running in symfony 4.
I ran the following commands:
composer require --dev friends-of-behat/symfony-extension:^2.0
composer require --dev friends-of-behat/mink friends-of-behat/mink-extension friends-of-behat/mink-browserkit-driver
I then run:
./vendor/bin/behat
and I get the following error:
In ContextServiceEnvironmentHandler.php line 195:
Kernel "App\Kernel" used by Behat with "local" environment and debug enabled needs to have "FriendsOfBehat\SymfonyExtension\Bundle\FriendsOfBehatSymfonyExtensionBundle" bundle registered.
Not sure why this isn't using the test env but I went to bundles.php and changed test to all in FriendsOfBehat\SymfonyExtension\Bundle\FriendsOfBehatSymfonyExtensionBundle::class => ['all' => true]
I ran the command again and got this error:
In Validator.php line 61:
Can not find a matching value for an argument `$kernel` of the method `App\Tests\Behat\DemoContext::__construct()`.
What am I doing wrong? I basically just installed this
kix, alanbem, yannickgranger, aleksandrawenda, develth and 1 more
Metadata
Metadata
Assignees
Labels
No labels