Seeds al migrar
This commit is contained in:
@ -74,7 +74,11 @@ class TestBootstrap
|
||||
public function migrate(): void
|
||||
{
|
||||
$cmd = "{$this->baseCommand} migrate -e testing";
|
||||
shell_exec($cmd);
|
||||
$status = shell_exec($cmd);
|
||||
if ($status !== false and $status !== null) {
|
||||
$cmd = "{$this->baseCommand} seed:run -e testing";
|
||||
shell_exec($cmd);
|
||||
}
|
||||
}
|
||||
|
||||
public function resetDatabase(): void
|
||||
|
Reference in New Issue
Block a user