Skip to content

Commit c5d0d13

Browse files
committed
Change deprecated assertFileNotExists
1 parent b3c9e0e commit c5d0d13

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

tests/system/Commands/ClearDebugbarTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ protected function createDummyDebugbarJson()
4343
public function testClearDebugbarWorks()
4444
{
4545
// test clean debugbar dir
46-
$this->assertFileNotExists(WRITEPATH . 'debugbar' . DIRECTORY_SEPARATOR . "debugbar_{$this->time}.json");
46+
$this->assertFileDoesNotExist(WRITEPATH . 'debugbar' . DIRECTORY_SEPARATOR . "debugbar_{$this->time}.json");
4747

4848
// test dir is now populated with json
4949
$this->createDummyDebugbarJson();
@@ -52,7 +52,7 @@ public function testClearDebugbarWorks()
5252
command('debugbar:clear');
5353
$result = CITestStreamFilter::$buffer;
5454

55-
$this->assertFileNotExists(WRITEPATH . 'debugbar' . DIRECTORY_SEPARATOR . "debugbar_{$this->time}.json");
55+
$this->assertFileDoesNotExist(WRITEPATH . 'debugbar' . DIRECTORY_SEPARATOR . "debugbar_{$this->time}.json");
5656
$this->assertFileExists(WRITEPATH . 'debugbar' . DIRECTORY_SEPARATOR . '.gitkeep');
5757
$this->assertStringContainsString('Debugbar cleared.', $result);
5858
}

tests/system/Commands/ClearLogsTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ protected function createDummyLogFiles()
4747
public function testClearLogsWorks()
4848
{
4949
// test clean logs dir
50-
$this->assertFileNotExists(WRITEPATH . 'logs' . DIRECTORY_SEPARATOR . "log-{$this->date}.log");
50+
$this->assertFileDoesNotExist(WRITEPATH . 'logs' . DIRECTORY_SEPARATOR . "log-{$this->date}.log");
5151

5252
// test dir is now populated with logs
5353
$this->createDummyLogFiles();
@@ -56,7 +56,7 @@ public function testClearLogsWorks()
5656
command('logs:clear -force');
5757
$result = CITestStreamFilter::$buffer;
5858

59-
$this->assertFileNotExists(WRITEPATH . 'logs' . DIRECTORY_SEPARATOR . "log-{$this->date}.log");
59+
$this->assertFileDoesNotExist(WRITEPATH . 'logs' . DIRECTORY_SEPARATOR . "log-{$this->date}.log");
6060
$this->assertFileExists(WRITEPATH . 'logs' . DIRECTORY_SEPARATOR . 'index.html');
6161
$this->assertStringContainsString('Logs cleared.', $result);
6262
}

0 commit comments

Comments
 (0)