Testmode
DrevOps\BehatSteps\Steps\Drupal\TestmodeTrait - Source, Example, Helpers
Configure Drupal Testmode module for controlled testing scenarios.
Skip processing with tag:@behat-steps-skip:TestmodeTrait.
Special tags:
@testmode- enable for scenario
Prerequisites
| Prerequisite | Capability |
|---|---|
| A backend in the scenario's list provides "StateCapabilityInterface" | StateCapabilityInterface |
| A backend in the scenario's list provides "CacheCapabilityInterface" | CacheCapabilityInterface |
| The "testmode" module from the "drupal/testmode" package is enabled | ModuleCapabilityInterface |
Options
| Option | Type | Default | Tag | Description |
|---|---|---|---|---|
testmode.enabled | boolean | TRUE | @behat-steps-skip:TestmodeTrait | Enable the Testmode module for a @testmode scenario and disable it afterwards. |