Drupal steps
These steps only mean something on a Drupal site. DrupalContext composes all of them, on top of the web steps it inherits from WebContext. A trait's page gives each of its steps an example and lists the options and the prerequisites the trait declares.
STEPS.md holds these steps and the web steps on 1 page. It ships with the package, so an AI coding agent in your project can read it from vendor/.
| Name | Trait | Description |
|---|---|---|
| Batch API | Drupal\BatchTrait | Wait for Drupal's Batch API to finish. |
| BigPipe | Drupal\BigPipeTrait | Wait for Drupal BigPipe placeholders to be replaced on JavaScript scenarios. |
| Blocks | Drupal\BlockTrait | Manage Drupal blocks. |
| Caches and cron | Drupal\CacheTrait | Invalidate Drupal caches and run cron from within a scenario. |
| Config overrides | Drupal\ConfigOverrideTrait | Disable Drupal config overrides from settings.php during a scenario. |
| Configuration | Drupal\ConfigTrait | Assert and set stored Drupal configuration values with automatic revert. |
| Content | Drupal\ContentTrait | Manage Drupal content with workflow and moderation support. |
| Content blocks | Drupal\ContentBlockTrait | Manage Drupal content blocks. |
| DraggableViews | Drupal\DraggableviewsTrait | Order items in the Drupal Draggable Views. |
| Drush | Drupal\DrushTrait | Run Drush commands and assert their output. |
| ECK entities | Drupal\EckTrait | Manage Drupal ECK entities of an existing entity type and bundle. |
Drupal\EmailTrait | Test Drupal email functionality with content verification. | |
| Entities | Drupal\EntityTrait | Create entities of a type that has no dedicated trait. |
| Files | Drupal\FileTrait | Manage Drupal file entities with upload and storage operations. |
| Languages | Drupal\LanguageTrait | Create the languages a scenario needs. |
| Media | Drupal\MediaTrait | Manage Drupal media entities with type-specific field handling. |
| Menus | Drupal\MenuTrait | Manage Drupal menus and menu links. |
| Modules | Drupal\ModuleTrait | Enable and disable Drupal modules with automatic state restoration. |
| Paragraphs | Drupal\ParagraphsTrait | Manage Drupal paragraphs entities with structured field data. |
| Queues | Drupal\QueueTrait | Manage and assert Drupal queue state. |
| Redirects | Drupal\RedirectTrait | Manage Drupal redirect entities provided by the contrib redirect module. |
| Search API | Drupal\SearchApiTrait | Run Drupal Search API indexing and cron hooks. |
| State API | Drupal\StateTrait | Manage and assert Drupal State API values with automatic revert. |
| System time | Drupal\TimeTrait | Control system time in tests using Drupal state overrides. |
| Taxonomy | Drupal\TaxonomyTrait | Manage Drupal taxonomy terms with vocabulary organization. |
| Testmode | Drupal\TestmodeTrait | Configure Drupal Testmode module for controlled testing scenarios. |
| Users | Drupal\UserTrait | Manage Drupal users with role and permission assignments. |
| Watchdog | Drupal\WatchdogTrait | Assert Drupal does not trigger PHP errors during scenarios using Watchdog. |
| Webforms | Drupal\WebformTrait | Manage Drupal webforms. |