mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-20 02:53:11 +00:00
Skip post_migrate when running tests
This commit is contained in:
@@ -35,7 +35,7 @@ class IdeHelperServiceProvider extends ServiceProvider implements DeferrableProv
|
|||||||
*/
|
*/
|
||||||
public function boot()
|
public function boot()
|
||||||
{
|
{
|
||||||
if ($this->app['config']->get('ide-helper.post_migrate', [])) {
|
if (!$this->app->runningUnitTests() && $this->app['config']->get('ide-helper.post_migrate', [])) {
|
||||||
$this->app['events']->listen(CommandFinished::class, GenerateModelHelper::class);
|
$this->app['events']->listen(CommandFinished::class, GenerateModelHelper::class);
|
||||||
$this->app['events']->listen(MigrationsEnded::class, function () {
|
$this->app['events']->listen(MigrationsEnded::class, function () {
|
||||||
GenerateModelHelper::$shouldRun = true;
|
GenerateModelHelper::$shouldRun = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user