From 700af834b4e0d707badf78bc23a11112d772d110 Mon Sep 17 00:00:00 2001 From: Chris Boulton Date: Fri, 16 Sep 2011 15:30:36 +1000 Subject: [PATCH] Unit tests should not be directly accessing payload[args] now that we have getArguments() --- test/Resque/Tests/JobTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/Resque/Tests/JobTest.php b/test/Resque/Tests/JobTest.php index df6187b..1f33fee 100644 --- a/test/Resque/Tests/JobTest.php +++ b/test/Resque/Tests/JobTest.php @@ -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()