Fix tests

This commit is contained in:
Pig Fang 2019-12-25 15:08:07 +08:00
parent cf497ad38c
commit 87256a56e9
2 changed files with 2 additions and 2 deletions

View File

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

View File

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