We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c967ed commit 45711d9Copy full SHA for 45711d9
tests/UserTest.php
@@ -260,6 +260,15 @@ public function testGet()
260
$this->assertEqualsFixture('get_user', $response->json());
261
}
262
263
+ public function testGetWrongUrl()
264
+ {
265
+ $response = $this->actingAs(self::$admin)->json('get', '/users/test');
266
+
267
+ $response->assertNotFound();
268
269
+ $response->assertJson(['error' => 'The route v0.1/users/test could not be found.']);
270
+ }
271
272
public function testGetNotExists()
273
{
274
$response = $this->actingAs(self::$admin)->json('get', '/users/0');
0 commit comments