also adjust error messages when adding admins + fix phpunit tests

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2022-05-08 13:28:57 +02:00
parent 31b79d6471
commit 7dd96ff6bd
4 changed files with 6 additions and 4 deletions

View File

@@ -86,7 +86,7 @@ class AdminsTest extends TestCase
'name' => 'Testreseller'
];
$this->expectExceptionMessage('You cannot create accounts which are similar to system accounts (as for example begin with "web"). Please enter another account name.');
$this->expectExceptionMessage('You cannot create accounts that begin with "web", as this prefix is set to be used for the automatic account-naming. Please enter another account name.');
Admins::getLocal($admin_userdata, $data)->add();
}