From 0e703a4199aa7105f2f7a683b5054edcf6250d85 Mon Sep 17 00:00:00 2001 From: Michael Kaufmann Date: Thu, 24 Nov 2022 10:30:01 +0100 Subject: [PATCH] adjust validate-test for 'sql username too long' for mariadb Signed-off-by: Michael Kaufmann --- tests/Froxlor/ValidateTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Froxlor/ValidateTest.php b/tests/Froxlor/ValidateTest.php index d973154a..3d116ade 100644 --- a/tests/Froxlor/ValidateTest.php +++ b/tests/Froxlor/ValidateTest.php @@ -198,7 +198,7 @@ class ValidateTest extends TestCase $result = Validate::validateUsername('web123sql2', true, $mysql_max); $this->assertTrue($result); // too long - $result = Validate::validateUsername('myperfectsuperduperwebuser123sql2', true, $mysql_max); + $result = Validate::validateUsername('myperfectsuperduperwebuserwhosnameisenormouslylongandprettyandshouldinnowaybeaccepted123sql2', true, $mysql_max); $this->assertFalse($result); // not unix-conform $result = Validate::validateUsername('web123-sql2', true, $mysql_max);