diff --git a/tests/BrowserKitTestCase.php b/tests/BrowserKitTestCase.php index 832046ed..68b1849e 100644 --- a/tests/BrowserKitTestCase.php +++ b/tests/BrowserKitTestCase.php @@ -27,9 +27,8 @@ class BrowserKitTestCase extends TestCase Artisan::call('migrate:refresh'); - $files = $app->make('files'); - if (!$files->exists(storage_path('install.lock'))) { - $files->put(storage_path('install.lock'), ''); + if (file_exists(storage_path('install.lock'))) { + file_put_contents(storage_path('install.lock'), ''); } return $app; diff --git a/tests/TestCase.php b/tests/TestCase.php index faabbe88..7b4c007b 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -26,9 +26,8 @@ class TestCase extends \Illuminate\Foundation\Testing\TestCase Artisan::call('migrate:refresh'); - $files = $app->make('files'); - if (!$files->exists(storage_path('install.lock'))) { - $files->put(storage_path('install.lock'), ''); + if (file_exists(storage_path('install.lock'))) { + file_put_contents(storage_path('install.lock'), ''); } return $app;