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 | If TRUE, switches the Testmode module's test mode on for a @testmode scenario and off after it finishes. If FALSE, the tag does nothing. |