mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes for testS
This commit is contained in:
parent
c36e2b8e26
commit
ea144a43a4
@ -109,28 +109,6 @@ class EmailServiceTest extends TestCase
|
||||
$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()
|
||||
{
|
||||
config(['ninja.environment' => 'hosted']);
|
||||
|
Loading…
x
Reference in New Issue
Block a user