function QueueTest::testSystemQueue
Same name in other branches
- 9 core/tests/Drupal/KernelTests/Core/Queue/QueueTest.php \Drupal\KernelTests\Core\Queue\QueueTest::testSystemQueue()
- 8.9.x core/tests/Drupal/KernelTests/Core/Queue/QueueTest.php \Drupal\KernelTests\Core\Queue\QueueTest::testSystemQueue()
- 10 core/tests/Drupal/KernelTests/Core/Queue/QueueTest.php \Drupal\KernelTests\Core\Queue\QueueTest::testSystemQueue()
Tests the System queue.
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Queue/ QueueTest.php, line 22
Class
- QueueTest
- Queues and unqueues a set of items to check the basic queue functionality.
Namespace
Drupal\KernelTests\Core\QueueCode
public function testSystemQueue() : void {
// Create two queues.
$queue1 = new DatabaseQueue($this->randomMachineName(), Database::getConnection());
$queue1->createQueue();
$queue2 = new DatabaseQueue($this->randomMachineName(), Database::getConnection());
$queue2->createQueue();
$this->runQueueTest($queue1, $queue2);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.