The Drupal Extension 4.x supports Drupal 7, 8, and 9, utilizes Behat 3.2+ and runs on PHP 7.3+. It is compatible with Symfony components 3.x as well as 4.x so it can be used on Drupal 8 and 9.
If you're new to the Drupal Extension, we recommend starting with the Full documentation
Install using Composer:
mkdir projectdir cd projectdir curl -sS https://getcomposer.org/installer | php COMPOSER_BIN_DIR=bin php composer.phar require drupal/drupal-extension='~4.0'
In the projectdir, create a file called
behat.yml. Below is the
minimal configuration. Many more options are covered in the
default: suites: default: contexts: - Drupal\DrupalExtension\Context\DrupalContext extensions: Drupal\MinkExtension: goutte: ~ base_url: http://example.org/ # Replace with your site's URL Drupal\DrupalExtension: blackbox: ~
In the projectdir, run
Find pre-defined steps to work with using:
Define your own steps in
Start adding your feature files
features directory of your repository.
Features and bug fixes are welcome! First-time contributors can jump in with the issues tagged good first issue.