| Total Complexity | 4 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class WithoutDebugBarRouteTest extends TestCase |
||
| 10 | { |
||
| 11 | private $blank_page = '<html xmlns="http://www.w3.org/1999/html"><head></head><body</body</html>'; |
||
| 12 | |||
| 13 | /** @test */ |
||
| 14 | public function validateCleanPage() |
||
| 15 | { |
||
| 16 | $crawler = $this->call('GET', 'sample-page'); |
||
| 17 | $this->assertEquals($this->blank_page, $crawler->getContent()); |
||
| 18 | } |
||
| 19 | |||
| 20 | /** @test */ |
||
| 21 | public function validatePageWithMiddleware() |
||
| 22 | { |
||
| 23 | $crawler = $this->call('GET', 'page-with-middleware'); |
||
| 24 | $this->assertEquals($this->blank_page, $crawler->getContent()); |
||
| 25 | } |
||
| 26 | |||
| 27 | protected function getPackageProviders($app) |
||
|
|
|||
| 28 | { |
||
| 29 | return [ConditionalDebugBarServiceProvider::class]; |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Define environment setup. |
||
| 34 | * |
||
| 35 | * @param Illuminate\Foundation\Application $app |
||
| 36 | * |
||
| 37 | * @return void |
||
| 38 | */ |
||
| 39 | protected function getEnvironmentSetUp($app) |
||
| 48 | } |
||
| 49 | } |
||
| 50 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.