drupaltest / queue-runner-trait
A Drupal queue runner trait for use with Drupal Test Traits.
Installs: 30 248
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 4
Forks: 1
Open Issues: 0
Type:drupal-dtt
Requires
- weitzman/drupal-test-traits: ^1.2 || ^2
Requires (Dev)
- composer/installers: ^1.7
- drupal-composer/drupal-scaffold: ^2.6
- drupal/core: ^8.7
- drush/drush: ^9.7
- jakub-onderka/php-parallel-lint: ^1.0
- squizlabs/php_codesniffer: ^3.4
- zaporylie/composer-drupal-optimizations: ^1.1
This package is auto-updated.
Last update: 2024-12-21 23:31:48 UTC
README
Provides a trait for use with the Drupal Test Traits library.
Installation
composer require --dev drupaltest/queue-runner-trait
Usage
class SampleTestWithQueueRunner extends ExistingSiteBase { use QueueRunnerTrait; protected function tearDown() { // Empty a given queue after the test has finished. $this->clearQueue('my_queue_name'); } public function testSomeQueue() { // Do something that adds an item to a queue. // Run the queue by name. $this->runQueue('my_queue_name'); } }
See the included test for a detailed example.