From 8af56137a87ff2182207980c1368f9f93221fd6c Mon Sep 17 00:00:00 2001 From: Juan Pablo Vial Date: Tue, 29 Apr 2025 21:51:19 -0400 Subject: [PATCH] Seeds al migrar --- app/test.bootstrap.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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