public function QueueTest::testSystemQueue in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/system/src/Tests/Queue/QueueTest.php \Drupal\system\Tests\Queue\QueueTest::testSystemQueue()
Tests the System queue.
File
- core/
modules/ system/ src/ Tests/ Queue/ QueueTest.php, line 32 - Contains \Drupal\system\Tests\Queue\QueueTest.
Class
- QueueTest
- Queues and dequeues a set of items to check the basic queue functionality.
Namespace
Drupal\system\Tests\QueueCode
public function testSystemQueue() {
$this
->installSchema('system', 'queue');
// Create two queues.
$queue1 = new DatabaseQueue($this
->randomMachineName(), Database::getConnection());
$queue1
->createQueue();
$queue2 = new DatabaseQueue($this
->randomMachineName(), Database::getConnection());
$queue2
->createQueue();
$this
->queueTest($queue1, $queue2);
}