mirror of
https://github.com/idanoo/php-resque
synced 2025-07-01 05:32:20 +00:00
Unit tests should not be directly accessing payload[args] now that we have getArguments()
This commit is contained in:
parent
ea1ceed742
commit
700af834b4
1 changed files with 2 additions and 2 deletions
|
@ -65,7 +65,7 @@ class Resque_Tests_JobTest extends Resque_Tests_TestCase
|
|||
Resque::enqueue('jobs', 'Test_Job', $args);
|
||||
$job = Resque_Job::reserve('jobs');
|
||||
|
||||
$this->assertEquals($args, $job->payload['args']);
|
||||
$this->assertEquals($args, $job->getArguments());
|
||||
}
|
||||
|
||||
public function testAfterJobIsReservedItIsRemoved()
|
||||
|
@ -97,7 +97,7 @@ class Resque_Tests_JobTest extends Resque_Tests_TestCase
|
|||
|
||||
$newJob = Resque_Job::reserve('jobs');
|
||||
$this->assertEquals($job->payload['class'], $newJob->payload['class']);
|
||||
$this->assertEquals($job->payload['args'], $newJob->payload['args']);
|
||||
$this->assertEquals($job->payload['args'], $newJob->getArguments());
|
||||
}
|
||||
|
||||
public function testFailedJobExceptionsAreCaught()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue