8000 Fix broken test in Laravel 5.1 · sablesoft/laravel-json-api@901f643 · GitHub
[go: up one dir, main page]

Skip to content

Commit 901f643

Browse files
committed
Fix broken test in Laravel 5.1
1 parent 331c66c commit 901f643

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/lib/Integration/Queue/QueueJobsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function testReadNotPending()
4444
$response = $this
4545
->getJsonApi($this->jobUrl($job))
4646
->assertStatus(303)
47-
->assertLocation('/api/v1/downloads/' . $job->resource_id)
47+
->assertHeader('Location', url('/api/v1/downloads', [$job->resource_id]))
4848
->assertHeader('Content-Type', 'application/vnd.api+json');
4949

5050
$this->assertEmpty($response->getContent(), 'content is empty.');

0 commit comments

Comments
 (0)
0