You are here

public function QueueTest::testMongoDBQueue in MongoDB 8

Tests MongoDB queue.

File

src/Tests/QueueTest.php, line 37
Definition of Drupal\mongodb\Tests\QueueTest.

Class

QueueTest
Tests queue functions.

Namespace

Drupal\mongodb\Tests

Code

public function testMongoDBQueue() {

  // Create two queues.
  $queue1 = new Queue(\Drupal::service('mongo'), $this
    ->randomName());
  $queue1
    ->createQueue();
  $queue2 = new Queue(\Drupal::service('mongo'), $this
    ->randomName());
  $queue2
    ->createQueue();
  $this
    ->queueTest($queue1, $queue2);
}