From a98ae562b2153ca152e1c97d58aed61ad83fe85e Mon Sep 17 00:00:00 2001 From: Michael Kaufmann Date: Tue, 30 Jul 2019 08:48:44 +0200 Subject: [PATCH] change mysql-username-test so it generates a loginname that fails depending on the mysql/mariadb version Signed-off-by: Michael Kaufmann --- tests/Customers/CustomersTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/Customers/CustomersTest.php b/tests/Customers/CustomersTest.php index 4de3fc0d..4f30d31a 100644 --- a/tests/Customers/CustomersTest.php +++ b/tests/Customers/CustomersTest.php @@ -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',