diff --git a/app/test.bootstrap.php b/app/test.bootstrap.php index 992792c..7f67efc 100644 --- a/app/test.bootstrap.php +++ b/app/test.bootstrap.php @@ -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