| 1 | <?php |
||
| 9 | class AdminControllerTest extends TestCase |
||
|
|
|||
| 10 | { |
||
| 11 | /** |
||
| 12 | * 'admin' Route |
||
| 13 | * |
||
| 14 | * User logged in |
||
| 15 | */ |
||
| 16 | public function test_returns_dashboard_if_user_is_authenticated () |
||
| 24 | |||
| 25 | /** |
||
| 26 | * 'admin' Route |
||
| 27 | * |
||
| 28 | * User Not logged in |
||
| 29 | */ |
||
| 30 | public function test_redirects_to_login_if_user_is_not_authenticated () |
||
| 35 | } |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.