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'), ''); }