Skip to content

Commit 26c9fce

Browse files
committed
fix: update code because of file changes
See codeigniter4#8734
1 parent d344ab6 commit 26c9fce

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

system/Commands/Housekeeping/ClearDebugbar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function run(array $params)
5757
{
5858
helper('filesystem');
5959

60-
if (! delete_files(WRITEPATH . 'debugbar')) {
60+
if (! delete_files(WRITEPATH . 'debugbar', false, true)) {
6161
// @codeCoverageIgnoreStart
6262
CLI::error('Error deleting the debugbar JSON files.');
6363
CLI::newLine();

tests/system/Commands/ClearDebugbarTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function testClearDebugbarWorks(): void
6161
$result = $this->getStreamFilterBuffer();
6262

6363
$this->assertFileDoesNotExist(WRITEPATH . 'debugbar' . DIRECTORY_SEPARATOR . "debugbar_{$this->time}.json");
64-
$this->assertFileExists(WRITEPATH . 'debugbar' . DIRECTORY_SEPARATOR . '.gitkeep');
64+
$this->assertFileExists(WRITEPATH . 'debugbar' . DIRECTORY_SEPARATOR . 'index.html');
6565
$this->assertStringContainsString('Debugbar cleared.', $result);
6666
}
6767
}

0 commit comments

Comments
 (0)