Skip to content

Commit 45711d9

Browse files
committed
Updated UserTest.php
1 parent 9c967ed commit 45711d9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/UserTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,15 @@ public function testGet()
260260
$this->assertEqualsFixture('get_user', $response->json());
261261
}
262262

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+
263272
public function testGetNotExists()
264273
{
265274
$response = $this->actingAs(self::$admin)->json('get', '/users/0');

0 commit comments

Comments
 (0)