Download the PHP package drupal/drupal-extension without Composer
On this page you can find all versions of the php package drupal/drupal-extension. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download drupal/drupal-extension
More information about drupal/drupal-extension
Files in drupal/drupal-extension
Package drupal-extension
Short Description Drupal extension for Behat
License GPL-2.0-or-later
Homepage http://drupal.org/project/drupalextension
Informations about the package drupal-extension
Behat Drupal Extension
The Drupal Extension is an integration layer between Behat, Mink Extension, and Drupal. It provides step definitions for common testing scenarios specific to Drupal sites.
The Drupal Extension 5.x supports Drupal 9 and 10, utilizes Behat 3.2+ and runs on:
- PHP 7.4, 8.0, 8.1 with Drupal 9
- PHP 8.1 with Drupal 10.
Use it for testing your Drupal site.
If you're new to the Drupal Extension, we recommend starting with the Full documentation
Quick start
-
Install using Composer:
-
In the projectdir, create a file called
behat.yml
. Below is the minimal configuration. Many more options are covered in the Full documentation -
In the projectdir, run
-
Find pre-defined steps to work with using:
-
Define your own steps in
projectdir\features\FeatureContext.php
- Start adding your feature files
to the
features
directory of your repository.
Credits
- Originally developed by Jonathan Hedstrom with great help from eliza411
- Maintainers
Additional resources
Examples and code snippets
- Complex node creation, with field collections and entity references
- Achievements module support
- Drupal form element visibility
- Track down PHP notices
- Support for sites using basic HTTP authentication
Release notes
See CHANGELOG.
Contributing
Features and bug fixes are welcome! First-time contributors can jump in with the issues tagged good first issue.
See CONTRIBUTING.md for more information.
All versions of drupal-extension with dependencies
behat/mink-browserkit-driver Version ^2.1.0
behat/mink-selenium2-driver Version ~1.1
drupal/drupal-driver Version ^2.2.1 || dev-master
friends-of-behat/mink-extension Version ^2.7.1
symfony/http-client Version ~4.4 || ^5 || ^6
webflo/drupal-finder Version ^1.2