runQueueTest example

/** * Tests the System queue. */
  public function testSystemQueue() {
    // 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);
  }

  /** * Tests the Memory queue. */
  public function testMemoryQueue() {
    // Create two queues.     $queue1 = new Memory($this->randomMachineName());
    $queue1->createQueue();
    $queue2 = new Memory($this->randomMachineName());
    $queue2->createQueue();

    
Home | Imprint | This part of the site doesn't use cookies.