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

@@ -138,7 +138,7 @@ class FtpsTest extends TestCase
'ftp_password' => 'h4xXx0r',
'path' => '/',
'ftp_description' => 'testing',
'sendinfomail' => 1
'sendinfomail' => TRAVIS_CI == 1 ? 0 : 1
];
$json_result = Ftps::getLocal($customer_userdata, $data)->add();
$result = json_decode($json_result, true)['data'];
@@ -236,7 +236,7 @@ class FtpsTest extends TestCase
'ftp_password' => 'h4xXx0r',
'path' => '/',
'ftp_description' => 'testing',
'sendinfomail' => 1
'sendinfomail' => TRAVIS_CI == 1 ? 0 : 1
];
$json_result = Ftps::getLocal($admin_userdata, $data)->add();
$result = json_decode($json_result, true)['data'];