Skip to content

Commit 700af83

Browse files
author
Chris Boulton
committed
Unit tests should not be directly accessing payload[args] now that we have getArguments()
1 parent ea1ceed commit 700af83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/Resque/Tests/JobTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function testQueuedJobReturnsExactSamePassedInArguments()
6565
Resque::enqueue('jobs', 'Test_Job', $args);
6666
$job = Resque_Job::reserve('jobs');
6767

68-
$this->assertEquals($args, $job->payload['args']);
68+
$this->assertEquals($args, $job->getArguments());
6969
}
7070

7171
public function testAfterJobIsReservedItIsRemoved()
@@ -97,7 +97,7 @@ public function testRecreatedJobMatchesExistingJob()
9797

9898
$newJob = Resque_Job::reserve('jobs');
9999
$this->assertEquals($job->payload['class'], $newJob->payload['class']);
100-
$this->assertEquals($job->payload['args'], $newJob->payload['args']);
100+
$this->assertEquals($job->payload['args'], $newJob->getArguments());
101101
}
102102

103103
public function testFailedJobExceptionsAreCaught()

0 commit comments

Comments
 (0)