change mysql-username-test so it generates a loginname that fails depending on the mysql/mariadb version

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2019-07-30 08:48:44 +02:00
parent 2aec6a10ed
commit a98ae562b2

View File

@@ -543,8 +543,9 @@ class CustomersTest extends TestCase
{
global $admin_userdata;
$loginname = str_repeat("x", \Froxlor\Database\Database::getSqlUsernameLength() + 1);
$data = [
'new_loginname' => 'useruseruseruseruseruserX',
'new_loginname' => $loginname,
'email' => 'team@froxlor.org',
'firstname' => 'Test2',
'name' => 'Testman2',