Skip to content

Commit

Permalink
Fixes tests.
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
  • Loading branch information
crynobone committed Feb 12, 2019
1 parent 44c79c9 commit 292bcd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Queue/QueueBeanstalkdQueueTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function testPopProperlyPopsJobOffOfBeanstalkd()
$pheanstalk = $queue->getPheanstalk();
$pheanstalk->shouldReceive('watchOnly')->once()->with('default')->andReturn($pheanstalk);
$job = m::mock(Job::class);
$pheanstalk->shouldReceive('reserve')->once()->with(0)->andReturn($job);
$pheanstalk->shouldReceive('reserveWithTimeout')->once()->with(0)->andReturn($job);

$result = $queue->pop();

Expand All @@ -62,7 +62,7 @@ public function testBlockingPopProperlyPopsJobOffOfBeanstalkd()
$pheanstalk = $queue->getPheanstalk();
$pheanstalk->shouldReceive('watchOnly')->once()->with('default')->andReturn($pheanstalk);
$job = m::mock(Job::class);
$pheanstalk->shouldReceive('reserve')->once()->with(60)->andReturn($job);
$pheanstalk->shouldReceive('reserveWithTimeout')->once()->with(60)->andReturn($job);

$result = $queue->pop();

Expand Down

0 comments on commit 292bcd7

Please sign in to comment.