Seeds al migrar

This commit is contained in:
Juan Pablo Vial
2025-04-29 21:51:19 -04:00
parent c3247838b3
commit 8af56137a8

View File

@ -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