You are here

public function QueueTest::testMemoryQueue in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/src/Tests/Queue/QueueTest.php \Drupal\system\Tests\Queue\QueueTest::testMemoryQueue()

Tests the Memory queue.

File

core/modules/system/src/Tests/Queue/QueueTest.php, line 46
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\Queue

Code

public function testMemoryQueue() {

  // Create two queues.
  $queue1 = new Memory($this
    ->randomMachineName());
  $queue1
    ->createQueue();
  $queue2 = new Memory($this
    ->randomMachineName());
  $queue2
    ->createQueue();
  $this
    ->queueTest($queue1, $queue2);
}