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

@@ -25,7 +25,7 @@ class MysqlsTest extends TestCase
$data = [
'mysql_password' => generatePassword(),
'description' => 'testdb',
'sendinfomail' => true
'sendinfomail' => TRAVIS_CI == 1 ? 0 : 1
];
$json_result = Mysqls::getLocal($customer_userdata, $data)->add();
$result = json_decode($json_result, true)['data'];