Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | public function testProtectedDashboardRoute() |
||
19 | { |
||
20 | // go to the protected page, without login |
||
21 | $response = $this->get($this->endpoint); |
||
22 | |||
23 | // should be redirected to login page |
||
24 | $response->assertResponseStatus(302); |
||
25 | $this->assertRedirectedTo('login'); |
||
26 | $this->see('login'); |
||
27 | } |
||
28 | } |
||
29 |