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