tests: Replace a very long string with str_repeat

Strings like this can make it problematic to scroll the page.

Change-Id: Ic2a5905fc64ea2d3bc1cb76746170953a671d107
This commit is contained in:
Daimona Eaytoy 2020-02-27 09:40:40 +00:00
parent cb97bd764a
commit 183edf76fd

View file

@ -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 ),