From 87256a56e98dbfaf3e10c56affefa82a0363cb1a Mon Sep 17 00:00:00 2001 From: Pig Fang Date: Wed, 25 Dec 2019 15:08:07 +0800 Subject: [PATCH] Fix tests --- tests/BrowserKitTestCase.php | 2 +- tests/TestCase.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/BrowserKitTestCase.php b/tests/BrowserKitTestCase.php index 68b1849e..d4dfd0d6 100644 --- a/tests/BrowserKitTestCase.php +++ b/tests/BrowserKitTestCase.php @@ -27,7 +27,7 @@ class BrowserKitTestCase extends TestCase Artisan::call('migrate:refresh'); - if (file_exists(storage_path('install.lock'))) { + if (!file_exists(storage_path('install.lock'))) { file_put_contents(storage_path('install.lock'), ''); } diff --git a/tests/TestCase.php b/tests/TestCase.php index 7b4c007b..f71efb79 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -26,7 +26,7 @@ class TestCase extends \Illuminate\Foundation\Testing\TestCase Artisan::call('migrate:refresh'); - if (file_exists(storage_path('install.lock'))) { + if (!file_exists(storage_path('install.lock'))) { file_put_contents(storage_path('install.lock'), ''); }