1 | <?php |
||
10 | class AdminControllerTest extends Illuminate\Foundation\Testing\TestCase |
||
11 | { |
||
12 | |||
13 | /** |
||
14 | * The base URL to use while testing the application. |
||
15 | * |
||
16 | * @var string |
||
17 | */ |
||
18 | protected $baseUrl = 'https://blue-meestorhok.c9users.io'; |
||
19 | |||
20 | /** |
||
21 | * Creates the application. |
||
22 | * |
||
23 | * @return \Illuminate\Foundation\Application |
||
24 | */ |
||
25 | public function createApplication() |
||
34 | |||
35 | // public function setUp() |
||
36 | // { |
||
37 | // $this->urlGenerator = new UrlGenerator(new RouteCollection(), Request::create('/', 'GET')); |
||
38 | // } |
||
39 | |||
40 | public function test_returns_dashboard_if_user_is_authenticated () |
||
51 | |||
52 | public function test_redirects_to_login_if_user_is_not_authenticated () |
||
57 | } |
||
58 |
Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.
The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.
This check looks for comments that seem to be mostly valid code and reports them.