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