Total Complexity | 3 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
9 | class WebsiteControllerTest extends TestCase |
||
10 | { |
||
11 | /** @test */ |
||
12 | public function shouldDisplayHomePage(): void |
||
13 | { |
||
14 | $response = $this->get('/'); |
||
15 | $response->assertResponseStatus(200); |
||
16 | } |
||
17 | |||
18 | /** @test */ |
||
19 | public function shouldDisplayUserInfoPage(): void |
||
20 | { |
||
21 | $users = ['_Cyb3r', 'hackLover', 'RaynLegends', 'xPeppe']; |
||
22 | $user = \array_rand($users); |
||
23 | $response = $this->get('/user/'.$users[$user]); |
||
24 | $response->assertResponseStatus(200); |
||
25 | } |
||
26 | |||
27 | /** @test */ |
||
28 | public function shouldDisplay404ForUnExistentUser(): void |
||
32 | } |
||
33 | } |
||
34 |