Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

Commit

Permalink
Fix Readme. Echo migration execution
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrea De Pirro committed Jul 26, 2019
1 parent 7e1bb3b commit d75faba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -36,7 +36,7 @@ To use the listener add it to your phpunit.xml, defining on which test suites it
<string>Integration</string>
</element>
</array>
<bool>true</bool> <!-- True if you want to seed data -->
<integer>1</integer> <!-- Set 1 if you want to seed data -->
<string>sqlite</string> <!-- Database connection -->
</arguments>
</listener>
Expand Down
2 changes: 1 addition & 1 deletion src/DatabaseMigrateTestListener.php
Expand Up @@ -42,6 +42,6 @@ public function startTestSuite(TestSuite $suite): void
$appDirectory = dirname($reflection->getFileName(), 3);
chdir($appDirectory);
$seed = $this->itShouldSeed ? '--seed' : '';
shell_exec("php artisan migrate:refresh --database {$this->connection} $seed");
echo shell_exec("php artisan migrate:refresh --database {$this->connection} $seed");
}
}

0 comments on commit d75faba

Please sign in to comment.