@@ -36,10 +36,10 @@ public function testSingletonDefaults()
36
36
$ this ->assertEquals (200 , $ response ->getStatusCode ());
37
37
$ this ->assertSame ('singleton update ' , $ response ->getContent ());
38
38
39
- $ this ->assertSame ('http://localhost/avatar ' , route ('avatar.destroy ' ));
40
- $ response = $ this ->delete ('/avatar ' );
41
- $ this ->assertEquals (200 , $ response ->getStatusCode ());
42
- $ this ->assertSame ('singleton destroy ' , $ response ->getContent ());
39
+ // $this->assertSame('http://localhost/avatar', route('avatar.destroy'));
40
+ // $response = $this->delete('/avatar');
41
+ // $this->assertEquals(404 , $response->getStatusCode());
42
+ // $this->assertSame('singleton destroy', $response->getContent());
43
43
}
44
44
45
45
public function testCreatableSingleton ()
@@ -55,6 +55,11 @@ public function testCreatableSingleton()
55
55
$ response = $ this ->post ('/avatar ' );
56
56
$ this ->assertEquals (200 , $ response ->getStatusCode ());
57
57
$ this ->assertSame ('singleton store ' , $ response ->getContent ());
58
+
59
+ $ this ->assertSame ('http://localhost/avatar ' , route ('avatar.destroy ' ));
60
+ $ response = $ this ->delete ('/avatar ' );
61
+ $ this ->assertEquals (200 , $ response ->getStatusCode ());
62
+ $ this ->assertSame ('singleton destroy ' , $ response ->getContent ());
58
63
}
59
64
60
65
public function testApiSingleton ()
0 commit comments