get rid of some more functions
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -377,7 +377,7 @@ class MailsTest extends TestCase
|
||||
|
||||
$data = [
|
||||
'emailaddr' => 'info@test2.local',
|
||||
'email_password' => generatePassword(),
|
||||
'email_password' => \Froxlor\System::generatePassword(),
|
||||
'alternative_email' => 'noone@example.com',
|
||||
'email_quota' => 1337,
|
||||
'sendinfomail' => TRAVIS_CI == 1 ? 0 : 1
|
||||
@@ -399,7 +399,7 @@ class MailsTest extends TestCase
|
||||
|
||||
$data = [
|
||||
'emailaddr' => 'info@test2.local',
|
||||
'email_password' => generatePassword(),
|
||||
'email_password' => \Froxlor\System::generatePassword(),
|
||||
'alternative_email' => 'noone@example.com',
|
||||
'email_quota' => 1338
|
||||
];
|
||||
@@ -459,7 +459,7 @@ class MailsTest extends TestCase
|
||||
// add account
|
||||
$data = [
|
||||
'emailaddr' => 'info@test2.local',
|
||||
'email_password' => generatePassword(),
|
||||
'email_password' => \Froxlor\System::generatePassword(),
|
||||
'alternative_email' => 'noone@example.com',
|
||||
'sendinfomail' => TRAVIS_CI == 1 ? 0 : 1
|
||||
];
|
||||
|
||||
@@ -27,7 +27,7 @@ class DirProtectionsTest extends TestCase
|
||||
$data = [
|
||||
'path' => '/test',
|
||||
'username' => 'testing',
|
||||
'directory_password' => generatePassword(),
|
||||
'directory_password' => \Froxlor\System::generatePassword(),
|
||||
'directory_authname' => 'test1'
|
||||
];
|
||||
$json_result = DirProtections::getLocal($customer_userdata, $data)->add();
|
||||
@@ -49,7 +49,7 @@ class DirProtectionsTest extends TestCase
|
||||
$data = [
|
||||
'path' => '/test',
|
||||
'username' => 'testing',
|
||||
'directory_password' => generatePassword(),
|
||||
'directory_password' => \Froxlor\System::generatePassword(),
|
||||
'directory_authname' => 'test2'
|
||||
];
|
||||
$this->expectExceptionMessage("Combination of username and path already exists");
|
||||
@@ -65,7 +65,7 @@ class DirProtectionsTest extends TestCase
|
||||
'loginname' => 'test1'
|
||||
))->get();
|
||||
$customer_userdata = json_decode($json_result, true)['data'];
|
||||
$up = generatePassword();
|
||||
$up = \Froxlor\System::generatePassword();
|
||||
$data = [
|
||||
'path' => '/test',
|
||||
'username' => $up,
|
||||
@@ -146,7 +146,7 @@ class DirProtectionsTest extends TestCase
|
||||
|
||||
$data = [
|
||||
'id' => 1,
|
||||
'directory_password' => generatePassword(),
|
||||
'directory_password' => \Froxlor\System::generatePassword(),
|
||||
'directory_authname' => 'test1337'
|
||||
];
|
||||
$json_result = DirProtections::getLocal($customer_userdata, $data)->update();
|
||||
|
||||
@@ -27,7 +27,7 @@ class MysqlsTest extends TestCase
|
||||
$customer_userdata = json_decode($json_result, true)['data'];
|
||||
|
||||
$data = [
|
||||
'mysql_password' => generatePassword(),
|
||||
'mysql_password' => \Froxlor\System::generatePassword(),
|
||||
'description' => 'testdb',
|
||||
'sendinfomail' => TRAVIS_CI == 1 ? 0 : 1
|
||||
];
|
||||
@@ -103,7 +103,7 @@ class MysqlsTest extends TestCase
|
||||
|
||||
$data = [
|
||||
'dbname' => 'test1sql1',
|
||||
'mysql_password' => generatePassword(),
|
||||
'mysql_password' => \Froxlor\System::generatePassword(),
|
||||
'description' => 'testdb-upd',
|
||||
'loginname' => 'test1'
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user