File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed
Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -61,22 +61,17 @@ protected function getEnvironmentSetUp($app)
6161
6262 private function resetDatabase ()
6363 {
64- // Relative to the testbench app folder: vendors/orchestra/testbench/src/fixture
65- $ migrationsPath = realpath ('Database/Migrations ' );
66- $ artisan = $ this ->app ->make ('Illuminate\Contracts\Console\Kernel ' );
6764 // Makes sure the migrations table is created
68- $ artisan -> call ('migrate ' , [
65+ $ this -> artisan ('migrate ' , [
6966 '--database ' => 'sqlite ' ,
70- '--realpath ' => $ migrationsPath ,
7167 ]);
7268 // We empty all tables
73- $ artisan -> call ('migrate:reset ' , [
69+ $ this -> artisan ('migrate:reset ' , [
7470 '--database ' => 'sqlite ' ,
7571 ]);
7672 // Migrate
77- $ artisan -> call ('migrate ' , [
73+ $ this -> artisan ('migrate ' , [
7874 '--database ' => 'sqlite ' ,
79- '--realpath ' => $ migrationsPath ,
8075 ]);
8176 }
8277}
You can’t perform that action at this time.
0 commit comments