Fixes for testS

This commit is contained in:
David Bomba 2023-03-15 20:57:16 +11:00
parent c36e2b8e26
commit ea144a43a4

View File

@ -109,28 +109,6 @@ class EmailServiceTest extends TestCase
$this->assertFalse($this->email_service->preFlightChecksFail()); $this->assertFalse($this->email_service->preFlightChecksFail());
} }
public function testClientMailersAreUnCapped()
{
config(['ninja.environment' => 'hosted']);
Cache::put($this->account->key, 1000000);
collect([
'gmail',
'office365',
'client_postmark',
'client_mailgun'])
->each(function ($mailer) {
$this->email_object->settings->email_sending_method = $mailer;
$this->assertFalse($this->email_service->preFlightChecksFail());
});
$this->email_object->settings->email_sending_method = 'postmark';
$this->assertTrue($this->email_service->preFlightChecksFail());
}
public function testFlaggedInvalidEmailsPrevented() public function testFlaggedInvalidEmailsPrevented()
{ {
config(['ninja.environment' => 'hosted']); config(['ninja.environment' => 'hosted']);