| Total Complexity | 3 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 2 |
| 1 | <?php |
||
| 8 | class WebsiteControllerTest extends TestCase |
||
| 9 | { |
||
| 10 | /** @test */ |
||
| 11 | public function shouldDisplayHomePage(): void |
||
| 12 | { |
||
| 13 | $response = $this->get('/'); |
||
| 14 | $response->assertResponseStatus(200); |
||
| 15 | } |
||
| 16 | |||
| 17 | /** @test */ |
||
| 18 | public function shouldDisplayUserInfoPage(): void |
||
| 19 | { |
||
| 20 | $response = $this->get('/user/_Cyb3r'); |
||
| 21 | $response->assertResponseStatus(200); |
||
| 22 | } |
||
| 23 | |||
| 24 | /** @test */ |
||
| 25 | public function shouldDisplay404ForUnExistentUser(): void |
||
| 29 | } |
||
| 30 | } |
||
| 31 |