Fix route calls [skip ci]

This commit is contained in:
James Cole
2019-06-09 10:27:11 +02:00
parent 2b76b4a2b2
commit c02ab6f6d8
8 changed files with 17 additions and 16 deletions

View File

@@ -207,7 +207,7 @@ class UserControllerTest extends TestCase
$transformer->shouldReceive('transform')->atLeast()->once()->andReturn(['id' => 5]);
// call API
$response = $this->put('/api/v1/users/' . $user->id, $data, ['Accept' => 'application/json']);
$response = $this->put(route('api.v1.users.update', $user->id), $data, ['Accept' => 'application/json']);
$response->assertStatus(200);
}