You are here

public function QueueTest::testMemoryQueue in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/KernelTests/Core/Queue/QueueTest.php \Drupal\KernelTests\Core\Queue\QueueTest::testMemoryQueue()
  2. 9 core/tests/Drupal/KernelTests/Core/Queue/QueueTest.php \Drupal\KernelTests\Core\Queue\QueueTest::testMemoryQueue()

Tests the Memory queue.

File

core/tests/Drupal/KernelTests/Core/Queue/QueueTest.php, line 33

Class

QueueTest
Queues and dequeues a set of items to check the basic queue functionality.

Namespace

Drupal\KernelTests\Core\Queue

Code

public function testMemoryQueue() {

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