X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FMovePageTest.php;h=2bde97b66bf4ec6182aacb23ea8d709bbfbc03be;hp=9501e452ec9aa1c458368c2864257a6aba1de639;hb=a0947c9507065a83afe52b078f0f6d1c6163875e;hpb=014615d926a3f8a2d50ce89b82fa6cae4cdd4de7 diff --git a/tests/phpunit/includes/MovePageTest.php b/tests/phpunit/includes/MovePageTest.php index 9501e452ec..2bde97b66b 100644 --- a/tests/phpunit/includes/MovePageTest.php +++ b/tests/phpunit/includes/MovePageTest.php @@ -28,16 +28,16 @@ class MovePageTest extends MediaWikiTestCase { * This should be kept in sync with TitleTest::provideTestIsValidMoveOperation */ public static function provideIsValidMove() { - return array( + return [ // for MovePage::isValidMove - array( 'Test', 'Test', 'selfmove' ), - array( 'Special:FooBar', 'Test', 'immobile-source-namespace' ), - array( 'Test', 'Special:FooBar', 'immobile-target-namespace' ), - array( 'MediaWiki:Common.js', 'Help:Some wikitext page', 'bad-target-model' ), - array( 'Page', 'File:Test.jpg', 'nonfile-cannot-move-to-file' ), + [ 'Test', 'Test', 'selfmove' ], + [ 'Special:FooBar', 'Test', 'immobile-source-namespace' ], + [ 'Test', 'Special:FooBar', 'immobile-target-namespace' ], + [ 'MediaWiki:Common.js', 'Help:Some wikitext page', 'bad-target-model' ], + [ 'Page', 'File:Test.jpg', 'nonfile-cannot-move-to-file' ], // for MovePage::isValidFileMove - array( 'File:Test.jpg', 'Page', 'imagenocrossnamespace' ), - ); + [ 'File:Test.jpg', 'Page', 'imagenocrossnamespace' ], + ]; } /** @@ -57,7 +57,7 @@ class MovePageTest extends MediaWikiTestCase { WikiPage::factory( $oldTitle )->getRevision() ); $this->assertNotNull( - WikiPage::factory( $newTitle)->getRevision() + WikiPage::factory( $newTitle )->getRevision() ); } }