X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FTitleTest.php;h=e88eb21ae7cb779be8cfb2225dc7036e17a83b20;hb=6467ad900b4799c01bbbaceb38cb7fbe309f1c53;hp=a8cffd10834e353b8e68a1530b13640c8afb8a0d;hpb=35073a9d890214f841124efff88efaf37ed3fff2;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/TitleTest.php b/tests/phpunit/includes/TitleTest.php index a8cffd1083..e88eb21ae7 100644 --- a/tests/phpunit/includes/TitleTest.php +++ b/tests/phpunit/includes/TitleTest.php @@ -99,9 +99,9 @@ class TitleTest extends MediaWikiTestCase { // XML/HTML character entity references // Note: Commented out because they are not marked invalid by the PHP test as // Title::newFromText runs Sanitizer::decodeCharReferencesAndNormalize first. - //'A é B', - //'A é B', - //'A é B', + // 'A é B', + // 'A é B', + // 'A é B', // Subject of NS_TALK does not roundtrip to NS_MAIN array( 'Talk:File:Example.svg', 'title-invalid-talk-namespace' ), // Directory navigation @@ -145,7 +145,7 @@ class TitleTest extends MediaWikiTestCase { } ) ) - )); + ) ); } /** @@ -657,7 +657,15 @@ class TitleTest extends MediaWikiTestCase { $linkCache->clearLink( $title ); $linkCache->addBadLinkObj( $title ); - $this->assertEquals( false, $title->exists(), 'exists() should rely on link cache unless GAID_FOR_UPDATE is used' ); - $this->assertEquals( true, $title->exists( Title::GAID_FOR_UPDATE ), 'exists() should re-query database when GAID_FOR_UPDATE is used' ); + $this->assertEquals( + false, + $title->exists(), + 'exists() should rely on link cache unless GAID_FOR_UPDATE is used' + ); + $this->assertEquals( + true, + $title->exists( Title::GAID_FOR_UPDATE ), + 'exists() should re-query database when GAID_FOR_UPDATE is used' + ); } }