Passed
Push — dev ( 4bea9d...fc80c1 )
by Mattia
05:53
created

shouldDisplay404ForUnExistentUser()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 2
c 1
b 0
f 1
nc 1
nop 0
dl 0
loc 4
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
/**
6
 * Class WebsiteControllerTest.
7
 */
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
26
    {
27
        $response = $this->get('/user/IHopeThisUserDoesNotExists');
28
        $response->assertResponseStatus(404);
29
    }
30
}
31