Phalcon\Tests\Queue\Beanstalk\ExtendedTest::testShouldPutAndReserve PHP Method

testShouldPutAndReserve() public method

    public function testShouldPutAndReserve()
    {
        $jobId = $this->client->putInTube(self::TUBE_NAME, 'testPutInTube');
        $this->assertNotEquals(false, $jobId);
        $job = $this->client->reserveFromTube(self::TUBE_NAME);
        $this->assertNotEmpty($job);
        $this->assertInstanceOf(self::JOB_CLASS, $job);
        $this->assertEquals($jobId, $job->getId());
        $this->assertTrue($job->delete());
    }