Skip to content

Commit 1348ed9

Browse files
Skip post_migrate when running tests
1 parent 8bbcc32 commit 1348ed9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/IdeHelperServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class IdeHelperServiceProvider extends ServiceProvider implements DeferrableProv
3535
*/
3636
public function boot()
3737
{
38-
if ($this->app['config']->get('ide-helper.post_migrate', [])) {
38+
if (!$this->app->runningUnitTests() && $this->app['config']->get('ide-helper.post_migrate', [])) {
3939
$this->app['events']->listen(CommandFinished::class, GenerateModelHelper::class);
4040
$this->app['events']->listen(MigrationsEnded::class, function () {
4141
GenerateModelHelper::$shouldRun = true;

0 commit comments

Comments
 (0)