1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-12 22:22:32 +01:00

Fixes for tests when calling classes outside app scope

This commit is contained in:
David Bomba 2022-07-02 08:28:12 +10:00
parent e18e276168
commit 6e5f5da6bb

View File

@ -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;
}