disable sending of emails when running tests completely when run on travis

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2018-11-27 12:05:56 +01:00
parent a86f10a4b4
commit 9756c792d7
6 changed files with 63 additions and 54 deletions

View File

@@ -372,7 +372,8 @@ class MailsTest extends TestCase
'emailaddr' => 'info@test2.local',
'email_password' => generatePassword(),
'alternative_email' => 'noone@example.com',
'email_quota' => 1337
'email_quota' => 1337,
'sendinfomail' => TRAVIS_CI == 1 ? 0 : 1
];
$json_result = EmailAccounts::getLocal($customer_userdata, $data)->add();
$result = json_decode($json_result, true)['data'];
@@ -452,7 +453,8 @@ class MailsTest extends TestCase
$data = [
'emailaddr' => 'info@test2.local',
'email_password' => generatePassword(),
'alternative_email' => 'noone@example.com'
'alternative_email' => 'noone@example.com',
'sendinfomail' => TRAVIS_CI == 1 ? 0 : 1
];
$json_result = EmailAccounts::getLocal($customer_userdata, $data)->add();
$result = json_decode($json_result, true)['data'];