diff --git a/tests/Commands/RotateFileTest.php b/tests/Commands/RotateFileTest.php index ac6746f..d00f1c0 100644 --- a/tests/Commands/RotateFileTest.php +++ b/tests/Commands/RotateFileTest.php @@ -80,6 +80,6 @@ public function itCanRotateFileMax() $this->assertFileExists($file.'.'.$n.'.gz'); } - $this->assertFileDoesNotExist($file.basename($file).'.4.gz'); + $this->assertFileNotExists($file.basename($file).'.4.gz'); } } diff --git a/tests/Handlers/RotativeHandlerTest.php b/tests/Handlers/RotativeHandlerTest.php index 7163511..bb55cc4 100644 --- a/tests/Handlers/RotativeHandlerTest.php +++ b/tests/Handlers/RotativeHandlerTest.php @@ -71,6 +71,6 @@ public function testItCanRotateLogsWithMaxfiles() $this->assertFileExists(app()->storagePath().'/logs/laravel.log.3.gz'); $this->assertFileExists(app()->storagePath().'/logs/laravel.log.4.gz'); $this->assertFileExists(app()->storagePath().'/logs/laravel.log.5.gz'); - $this->assertFileDoesNotExist(app()->storagePath().'/logs/laravel.log.6.gz'); + $this->assertFileNotExists(app()->storagePath().'/logs/laravel.log.6.gz'); } } diff --git a/tests/RotateTest.php b/tests/RotateTest.php index 1e5643c..a39f05b 100644 --- a/tests/RotateTest.php +++ b/tests/RotateTest.php @@ -18,7 +18,7 @@ public function testNoRotateIfFileLogsNotExits() Event::assertDispatched(RotateIsNotNecessary::class, 1); $this->assertEquals($resultCode, 0); - $this->assertFileDoesNotExist(app()->storagePath().'/logs/laravel.log.1.gz'); + $this->assertFileNotExists(app()->storagePath().'/logs/laravel.log.1.gz'); } public function testNoRotateIfFileLogsIsEmpty() @@ -30,7 +30,7 @@ public function testNoRotateIfFileLogsIsEmpty() Event::assertDispatched(RotateIsNotNecessary::class, 1); $this->assertEquals($resultCode, 0); - $this->assertFileDoesNotExist(app()->storagePath().'/logs/laravel.log.1.gz'); + $this->assertFileNotExists(app()->storagePath().'/logs/laravel.log.1.gz'); } public function testItCanRotateLogsInArchiveDir() @@ -96,7 +96,7 @@ public function testItNotRotateLogsDaily() $this->assertEquals($resultCode, 0); foreach ($files as $file) { - $this->assertFileDoesNotExist($file.'.1.gz'); + $this->assertFileNotExists($file.'.1.gz'); } }