diff --git a/tests/TestCase.php b/tests/TestCase.php index 98e3bade..d97bcbfa 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -8,4 +8,16 @@ use Illuminate\Foundation\Testing\WithFaker; abstract class TestCase extends BaseTestCase { use CreatesApplication, WithFaker; + + public function artisan($command, $parameters = []) + { + $migrate = explode(':', $command); + + + if ($migrate[0] == "migrate" && !isset($parameters['--path'])) { + $parameters['--path'] = ['/database/old_migrations/', 'database/migrations']; + } + + return parent::artisan($command, $parameters); + } }