mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
fix: update code because of file changes
See https://github.com/codeigniter4/CodeIgniter4/pull/8734
This commit is contained in:
parent
d344ab63fb
commit
26c9fce62c
@ -57,7 +57,7 @@ class ClearDebugbar extends BaseCommand
|
||||
{
|
||||
helper('filesystem');
|
||||
|
||||
if (! delete_files(WRITEPATH . 'debugbar')) {
|
||||
if (! delete_files(WRITEPATH . 'debugbar', false, true)) {
|
||||
// @codeCoverageIgnoreStart
|
||||
CLI::error('Error deleting the debugbar JSON files.');
|
||||
CLI::newLine();
|
||||
|
@ -61,7 +61,7 @@ final class ClearDebugbarTest extends CIUnitTestCase
|
||||
$result = $this->getStreamFilterBuffer();
|
||||
|
||||
$this->assertFileDoesNotExist(WRITEPATH . 'debugbar' . DIRECTORY_SEPARATOR . "debugbar_{$this->time}.json");
|
||||
$this->assertFileExists(WRITEPATH . 'debugbar' . DIRECTORY_SEPARATOR . '.gitkeep');
|
||||
$this->assertFileExists(WRITEPATH . 'debugbar' . DIRECTORY_SEPARATOR . 'index.html');
|
||||
$this->assertStringContainsString('Debugbar cleared.', $result);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user