Skip to content

Commit

Permalink
Include migrations for running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kyoungportable committed Oct 18, 2024
1 parent dc2faad commit 80556f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Providers/FilaCmsServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ public function register()
], 'fila-cms-config');

// Only publish migrations if we're running inthe cli
if ($this->app->runningInConsole()) {
if ($this->app->runningInConsole() || $this->app->runningUnitTests()) {
// Get all the migration stubs and publish them
$filePath = __DIR__.'/../../stubs/database/migrations/auto*.stub';
$files = glob($filePath);
Expand Down

0 comments on commit 80556f7

Please sign in to comment.