From f52295fb219abda568f5ef5fee1d6d074f33ce13 Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Fri, 19 Jun 2020 21:01:09 +0100 Subject: [PATCH] Stop using deprecated assertFileNotExists test method --- tests/Unit/Jobs/DownloadWebMentionJobTest.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tests/Unit/Jobs/DownloadWebMentionJobTest.php b/tests/Unit/Jobs/DownloadWebMentionJobTest.php index bc8731d4..4ca1efa8 100644 --- a/tests/Unit/Jobs/DownloadWebMentionJobTest.php +++ b/tests/Unit/Jobs/DownloadWebMentionJobTest.php @@ -9,7 +9,6 @@ use GuzzleHttp\Psr7\Response; use App\Jobs\DownloadWebMention; use GuzzleHttp\Handler\MockHandler; use Illuminate\FileSystem\FileSystem; -use Illuminate\Foundation\Testing\RefreshDatabase; class DownloadWebMentionJobTest extends TestCase { @@ -24,7 +23,7 @@ class DownloadWebMentionJobTest extends TestCase public function test_the_job_saves_html() { - $this->assertFileNotExists(storage_path('HTML/https')); + $this->assertFileDoesNotExist(storage_path('HTML/https')); $source = 'https://example.org/reply/1'; $html = << @@ -46,12 +45,12 @@ HTML; $job->handle($client); - $this->assertFileNotExists(storage_path('HTML/https/example.org/reply') . '/1.' . date('Y-m-d') . '.backup'); + $this->assertFileDoesNotExist(storage_path('HTML/https/example.org/reply') . '/1.' . date('Y-m-d') . '.backup'); } public function test_the_job_saves_html_and_backup() { - $this->assertFileNotExists(storage_path('HTML/https')); + $this->assertFileDoesNotExist(storage_path('HTML/https')); $source = 'https://example.org/reply/1'; $html = << @@ -85,7 +84,7 @@ HTML; public function test_an_index_html_file() { - $this->assertFileNotExists(storage_path('HTML/https')); + $this->assertFileDoesNotExist(storage_path('HTML/https')); $source = 'https://example.org/reply-one/'; $html = <<