You are here

public function Redis_Tests_Queue_QueueUnitTestCase::testCreate in Redis 7.3

File

lib/Redis/Tests/Queue/QueueUnitTestCase.php, line 37

Class

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

Code

public function testCreate() {
  $res = $this->queue
    ->createItem('test-queue-item-create');
  $num = $this->queue
    ->numberOfItems();
  $this
    ->assertEqual(1, $num);
}