X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FTitleTest.php;h=529d9fb0ddc25ef26a88dc26fd7764bc282db3a2;hb=110a5877e9e6ebe7a6ecd758f5812f32fc4ef57e;hp=c46f69b2ef5d7b67c5cc1593b5ce07982fe10962;hpb=447574ceb746c2f4026a8bf77632bdc4604314bb;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/TitleTest.php b/tests/phpunit/includes/TitleTest.php index c46f69b2ef..529d9fb0dd 100644 --- a/tests/phpunit/includes/TitleTest.php +++ b/tests/phpunit/includes/TitleTest.php @@ -295,6 +295,8 @@ class TitleTest extends MediaWikiTestCase { * @covers Title::isValidMoveOperation */ public function testIsValidMoveOperation( $source, $target, $expected ) { + $this->hideDeprecated( 'Title::isValidMoveOperation' ); + $this->setMwGlobals( 'wgContentHandlerUseDB', false ); $title = Title::newFromText( $source ); $nt = Title::newFromText( $target ); @@ -336,7 +338,7 @@ class TitleTest extends MediaWikiTestCase { public function testWgWhitelistReadRegexp( $whitelistRegexp, $source, $action, $expected ) { // $wgWhitelistReadRegexp must be an array. Since the provided test cases // usually have only one regex, it is more concise to write the lonely regex - // as a string. Thus we cast to an array() to honor $wgWhitelistReadRegexp + // as a string. Thus we cast to a [] to honor $wgWhitelistReadRegexp // type requisite. if ( is_string( $whitelistRegexp ) ) { $whitelistRegexp = [ $whitelistRegexp ];