oskarstark / sonata-admin-behat-context
a Behat Context for SonataAdmin
Installs: 43 380
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 6
Forks: 1
Open Issues: 1
Requires
- php: >=7.1
- behat/behat: ^3.0
- behat/mink-extension: ^2.3
- friends-of-behat/symfony-extension: ^2.1
Requires (Dev)
- behat/mink-goutte-driver: ^1.1
- behat/mink-selenium2-driver: ^1.3
- guzzlehttp/guzzle: ^6.3
- phpunit/phpunit: ^7.0|^8.5.21
- sonata-project/user-bundle: ^4.0
- symfony/browser-kit: ^4.3
Suggests
- sonata-project/user-bundle: Allows User & Authentication scenarios
README
Installation
composer require oskarstark/sonata-admin-behat-context --dev
Usage
Enable the context in your behat.yml
:
default: suites: default: contexts: - OStark\Context\SonataAdminContext: # this can be disabled if you do not use the SonataAdminUserBundle - OStark\Context\SonataAdminUserBundleContext: userManager: '@sonata.user.user_manager' tokenStorage: '@security.token_storage' session: '@session' # make sure to enable MinkContext! - Behat\MinkExtension\Context\MinkContext