You are here

public function Redis_Tests_Queue_AbstractQueueUnitTestCase::testClaim in Redis 7.2

File

lib/Redis/Tests/Queue/AbstractQueueUnitTestCase.php, line 44

Class

Redis_Tests_Queue_AbstractQueueUnitTestCase
Some tests in there credits goes to the redis_queue module. Thanks to their author.

Code

public function testClaim() {
  $data = 'test-queue-item-claimed';
  $res = $this->queue
    ->createItem($data);
  $item = $this->queue
    ->claimItem();
  $this
    ->assertEqual($data, $item->data);
}