|
@@ 17-23 (lines=7) @@
|
| 14 |
|
DebugBar::clearDebugBar(); |
| 15 |
|
} |
| 16 |
|
|
| 17 |
|
public function testErrorWhenStorageIsDisabled() |
| 18 |
|
{ |
| 19 |
|
Config::modify()->set(DebugBar::class, 'enable_storage', false); |
| 20 |
|
$result = $this->get('/__debugbar'); |
| 21 |
|
$this->assertEquals(404, $result->getStatusCode()); |
| 22 |
|
$this->assertEquals('Storage not enabled', (string) $result->getBody()); |
| 23 |
|
} |
| 24 |
|
|
| 25 |
|
public function testErrorWhenModuleIsDisabled() |
| 26 |
|
{ |
|
@@ 25-31 (lines=7) @@
|
| 22 |
|
$this->assertEquals('Storage not enabled', (string) $result->getBody()); |
| 23 |
|
} |
| 24 |
|
|
| 25 |
|
public function testErrorWhenModuleIsDisabled() |
| 26 |
|
{ |
| 27 |
|
Config::modify()->set(DebugBar::class, 'disabled', true); |
| 28 |
|
$result = $this->get('/__debugbar'); |
| 29 |
|
$this->assertEquals(404, $result->getStatusCode()); |
| 30 |
|
$this->assertEquals('DebugBar not enabled', (string) $result->getBody()); |
| 31 |
|
} |
| 32 |
|
} |
| 33 |
|
|