You are here

public function Redis_Tests_Queue_AbstractQueueUnitTestCase::testCreate in Redis 7.2

File

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

Class

Redis_Tests_Queue_AbstractQueueUnitTestCase
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);
}