File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -260,13 +260,25 @@ public function testGet()
260260 $ this ->assertEqualsFixture ('get_user ' , $ response ->json ());
261261 }
262262
263- public function testGetWrongUrl ()
263+ public function testGetIdParamAsString ()
264264 {
265265 $ response = $ this ->actingAs (self ::$ admin )->json ('get ' , '/users/test ' );
266266
267267 $ response ->assertNotFound ();
268+ }
269+
270+ public function testPutIdParamAsString ()
271+ {
272+ $ response = $ this ->actingAs (self ::$ admin )->json ('put ' , '/users/test ' );
268273
269- $ response ->assertJson (['error ' => 'The route v0.1/users/test could not be found. ' ]);
274+ $ response ->assertNotFound ();
275+ }
276+
277+ public function testDeleteIdParamAsString ()
278+ {
279+ $ response = $ this ->actingAs (self ::$ admin )->json ('delete ' , '/users/test ' );
280+
281+ $ response ->assertNotFound ();
270282 }
271283
272284 public function testGetNotExists ()
You can’t perform that action at this time.
0 commit comments