get rid of some more functions

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2018-12-20 07:43:40 +01:00
parent adc627ca4e
commit 8c896d60d6
31 changed files with 368 additions and 458 deletions

View File

@@ -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();