File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
system/Commands/Housekeeping Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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 ();
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments