nuvoleweb / drupal-behat
Drupal Behat extension.
Installs: 567 827
Dependents: 4
Suggesters: 0
Security: 0
Stars: 33
Watchers: 9
Forks: 24
Open Issues: 4
Type:behat-extension
Requires
- drupal/drupal-extension: ^5.0@alpha
- symfony/config: ^4.0 || ^5.0 || ^6.0
Requires (Dev)
- composer/installers: ^1.2 || ^2.0
- drupal/chosen: ^4.0@RC
- drupal/coffee: ^1.3
- drupal/core-composer-scaffold: ^9.0 || ^10.0
- drupal/core-dev: ^9.0 || ^10.0
- drupal/paragraphs: ^1.15
- drush/drush: ^10.0 || ^11.0 || ^12.0
- ergebnis/composer-normalize: ^2.5
- harvesthq/chosen: 1.8.7
- openeuropa/task-runner: ^2.0@alpha
- phpro/grumphp-shim: ^1.6
- 1.x-dev
- 1.3.0
- 1.2.0
- 1.1.5
- 1.1.4
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.x-dev
- 1.0.2
- 1.0.1
- 1.0.0
- 0.8.x-dev
- 0.8.1
- 0.7.x-dev
- 0.7.1
- 0.7.0
- dev-10-multiple-entity-references
- dev-10-multiple-entity-references-php7.0
- dev-10-multiple-entity-references-cherry
- dev-update-drupal-driver-2.x
- dev-config-dir-test
- dev-i45-behat-4.x
- dev-vever001-2.x
- dev-fix-travis
This package is auto-updated.
Last update: 2024-12-09 17:42:22 UTC
README
Nuvole's Behat Drupal Extension extends the popular Behat Drupal Extension in order to provide the following features:
- Additional step definitions covering contributed modules, core functionality and popular third-party plugins.
- Contexts can access the global Behat service container.
- Developers can organize their test using dependency injection by declaring their services in a YAML file and/or override default Behat services.
- Developers can override Drupal driver core classes and allow their step definitions to run transparently on different Drupal core versions.
For more information please check the documentation.
Installation and setup
Install Nuvole's Behat Drupal Extension with Composer by running:
$ composer require nuvoleweb/drupal-behat
Setup the extension by following the Quick start section
available on the original Behat Drupal Extension page, just use NuvoleWeb\Drupal\DrupalExtension
instead of the native
Drupal\DrupalExtension
in your behat.yml
as shown below:
default: suites: default: contexts: - Drupal\DrupalExtension\Context\DrupalContext - NuvoleWeb\Drupal\DrupalExtension\Context\DrupalContext ... extensions: Behat\MinkExtension: goutte: ~ ... # Use "NuvoleWeb\Drupal\DrupalExtension" instead of "Drupal\DrupalExtension". NuvoleWeb\Drupal\DrupalExtension: api_driver: "drupal" ... services: "tests/my_services.yml" text: node_submit_label: "Save and publish"
Extension settings
Nuvole's Behat Drupal Extension accepts all parameters of the original Behat Drupal Extension and it provides the following additional ones: