Skip to content

Commit

Permalink
adjust validate-test for 'sql username too long' for mariadb
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
  • Loading branch information
d00p committed Nov 24, 2022
1 parent 47c71f6 commit 0e703a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Froxlor/ValidateTest.php
Expand Up @@ -198,7 +198,7 @@ public function testValidateUsername()
$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);
Expand Down

0 comments on commit 0e703a4

Please sign in to comment.