From 183edf76fd6095dcefa00455f8d671a24cdaf76c Mon Sep 17 00:00:00 2001 From: Daimona Eaytoy Date: Thu, 27 Feb 2020 09:40:40 +0000 Subject: [PATCH] tests: Replace a very long string with str_repeat Strings like this can make it problematic to scroll the page. Change-Id: Ic2a5905fc64ea2d3bc1cb76746170953a671d107 --- tests/phpunit/includes/user/UserTest.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/phpunit/includes/user/UserTest.php b/tests/phpunit/includes/user/UserTest.php index 17d918d95c7..355c363335e 100644 --- a/tests/phpunit/includes/user/UserTest.php +++ b/tests/phpunit/includes/user/UserTest.php @@ -2653,8 +2653,7 @@ class UserTest extends MediaWikiTestCase { 'wgInvalidUsernameCharacters' => '@', ] ); - // phpcs:ignore Generic.Files.LineLength - $longUserName = 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz'; + $longUserName = str_repeat( 'x', 260 ); $this->assertFalse( User::isCreatableName( $longUserName ),