Skip to content

Commit

Permalink
fix: update code because of file changes
Browse files Browse the repository at this point in the history
See #8734
  • Loading branch information
kenjis committed Apr 9, 2024
1 parent d344ab6 commit 26c9fce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion system/Commands/Housekeeping/ClearDebugbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function run(array $params)
{
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();
Expand Down
2 changes: 1 addition & 1 deletion tests/system/Commands/ClearDebugbarTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function testClearDebugbarWorks(): void
$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);
}
}

0 comments on commit 26c9fce

Please sign in to comment.