change the test case to adopt two path of migrations
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user