diff --git a/src/Providers/FilaCmsServiceProvider.php b/src/Providers/FilaCmsServiceProvider.php index f4993647..ad157201 100644 --- a/src/Providers/FilaCmsServiceProvider.php +++ b/src/Providers/FilaCmsServiceProvider.php @@ -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);