File tree Expand file tree Collapse file tree 3 files changed +2
-7
lines changed Expand file tree Collapse file tree 3 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ All notable changes to this project will be documented in this file.
5
5
[ Next release] ( https://github.com/barryvdh/laravel-ide-helper/compare/v2.9.2...master )
6
6
--------------
7
7
### Fixed
8
+ - Running tests triggering post_migrate hooks [ \# 1193 / netpok] ( https://github.com/barryvdh/laravel-ide-helper/pull/1193 )
8
9
- Array_merge error when config is cached prior to package install [ \# 1184 / netpok] ( https://github.com/barryvdh/laravel-ide-helper/pull/1184 )
9
10
10
11
2021-03-15, 2.9.1
Original file line number Diff line number Diff line change 17
17
<code >\Storage</code >
18
18
</UndefinedClass >
19
19
</file >
20
- <file src =" src/IdeHelperServiceProvider.php" >
21
- <TooFewArguments occurrences =" 1" >
22
- <code >new PhpEngine()</code >
23
- </TooFewArguments >
24
- </file >
25
20
</files >
Original file line number Diff line number Diff line change 19
19
use Illuminate \Console \Events \CommandFinished ;
20
20
use Illuminate \Contracts \Support \DeferrableProvider ;
21
21
use Illuminate \Database \Events \MigrationsEnded ;
22
- use Illuminate \Foundation \Application ;
23
22
use Illuminate \Support \ServiceProvider ;
24
23
use Illuminate \View \Engines \EngineResolver ;
25
24
use Illuminate \View \Engines \PhpEngine ;
@@ -35,7 +34,7 @@ class IdeHelperServiceProvider extends ServiceProvider implements DeferrableProv
35
34
*/
36
35
public function boot ()
37
36
{
38
- if ($ this ->app ['config ' ]->get ('ide-helper.post_migrate ' , [])) {
37
+ if (! $ this -> app -> runningUnitTests () && $ this ->app ['config ' ]->get ('ide-helper.post_migrate ' , [])) {
39
38
$ this ->app ['events ' ]->listen (CommandFinished::class, GenerateModelHelper::class);
40
39
$ this ->app ['events ' ]->listen (MigrationsEnded::class, function () {
41
40
GenerateModelHelper::$ shouldRun = true ;
You can’t perform that action at this time.
0 commit comments