Skip to content

Commit 6674a87

Browse files
committed
update test
1 parent 6ddf3b0 commit 6674a87

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

tests/Integration/Routing/RouteSingletonTest.php

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ public function testSingletonDefaults()
3636
$this->assertEquals(200, $response->getStatusCode());
3737
$this->assertSame('singleton update', $response->getContent());
3838

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());
4343
}
4444

4545
public function testCreatableSingleton()
@@ -55,6 +55,11 @@ public function testCreatableSingleton()
5555
$response = $this->post('/avatar');
5656
$this->assertEquals(200, $response->getStatusCode());
5757
$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());
5863
}
5964

6065
public function testApiSingleton()

0 commit comments

Comments
 (0)