QueueTest.php 296 Bytes
Newer Older
Jens Segers's avatar
Jens Segers committed
1 2 3 4 5 6 7 8 9 10 11 12 13
<?php

class QueueTest extends TestCase
{
    public function testQueue()
    {
        $id = Queue::push('test', ['foo' => 'bar'], 'test');
        $this->assertNotNull($id);

        $job = Queue::pop('test');
        $this->assertInstanceOf('Illuminate\Queue\Jobs\DatabaseJob', $job);
    }
}