From 6e5f5da6bb7e8232b3474d850a87726995008314 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sat, 2 Jul 2022 08:28:12 +1000 Subject: [PATCH] Fixes for tests when calling classes outside app scope --- app/Jobs/Mail/NinjaMailerJob.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Jobs/Mail/NinjaMailerJob.php b/app/Jobs/Mail/NinjaMailerJob.php index f5513e36f3..f653ff4965 100644 --- a/app/Jobs/Mail/NinjaMailerJob.php +++ b/app/Jobs/Mail/NinjaMailerJob.php @@ -334,8 +334,8 @@ class NinjaMailerJob implements ShouldQueue return true; /* On the hosted platform we actively scan all outbound emails to ensure outbound email quality remains high */ - // if(Ninja::isHosted()) - // return (new \Modules\Admin\Jobs\Account\EmailQuality($this->nmo, $this->company))->run(); + if(class_exists(\Modules\Admin\Jobs\Account\EmailQuality::class)) + return (new \Modules\Admin\Jobs\Account\EmailQuality($this->nmo, $this->company))->run(); return false; }