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:
parent
cb97bd764a
commit
183edf76fd
1 changed files with 1 additions and 2 deletions
|
|
@ -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 ),
|
||||
|
|
|
|||
Loading…
Reference in a new issue