Download the PHP package dennisdigital/domain-extension without Composer
On this page you can find all versions of the php package dennisdigital/domain-extension. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dennisdigital/domain-extension
More information about dennisdigital/domain-extension
Files in dennisdigital/domain-extension
Package domain-extension
Short Description Domain extension for Behat
License MIT
Homepage https://github.com/dennisinteractive/drupal_domain_extension
Informations about the package domain-extension
Behat Domain Extension
The Domain Extension is an integration layer for behat that allows control across multiple domains. It provides common step definitions for testing domain based features.
Why?
When testing sites which have multiple domains configured or when testing across multiple domains we need a way to tell Mink which domain we want to run our scenarios against.
How?
By default Mink supports a single base url that it will prepend all relative urls to. The domain extension allows us to switch this base url in our Scenarios depending on the domain we're testing by using one of the following step definitions:
From this point on, all the steps we run in the given Scenario will be tested against this new domain.
It also allows the use of aliases for domains, as can be seen above, so that we don't need to refer to domains directly. These can be configured in the Domain Extension config as follows:
Dependencies:
- Behat
- Symfony DPI
- Mink
Notes
Mink override approach taken from - https://github.com/Behat/MinkExtension/issues/155
All versions of domain-extension with dependencies
behat/behat Version ~3.4.0
behat/mink-extension Version ~2.0
symfony/dependency-injection Version ~3.2