Use native fs functions for bootstrapping tests
This commit is contained in:
parent
78ae974e7a
commit
b0435351fa
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user