queue runner trait
1.1.0
Drupal 테스트 특성 라이브러리와 함께 사용할 특성을 제공합니다.
composer require --dev drupaltest/queue-runner-trait
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 ' );
}
}
자세한 예는 포함된 테스트를 참조하세요.