Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

Commit

Permalink
Add test to check for Beanstalkd exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Jurian Sluiman committed Apr 21, 2014
1 parent 3452a44 commit f2b2b6b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/SlmQueueBeanstalkdTest/Worker/BeanstalkdWorkerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,13 @@ public function testAssertJobIsBuriedIfAnyExceptionIsThrown()

$this->assertEquals('buried', $job->getContent());
}

public function testOnlyBeanstalkdQueuesAreAllowed()
{
$queue = $this->getMock('SlmQueue\Queue\QueueInterface');
$job = new Asset\SimpleJob();

$this->setExpectedException('SlmQueueBeanstalkd\Exception\ExceptionInterface');
$this->worker->processJob($job, $queue);
}
}

0 comments on commit f2b2b6b

Please sign in to comment.