If you don't want to prevent lazy loading when running your tests you can disable it
1Model::preventLazyLoading(!$this->app->isProduction() && !$this->app->runningUnitTests());
Tip given by @djgeisi
If you don't want to prevent lazy loading when running your tests you can disable it
1Model::preventLazyLoading(!$this->app->isProduction() && !$this->app->runningUnitTests());
Tip given by @djgeisi