X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fapi%2FApiEditPageTest.php;h=c82edf03998dd341f53e1660d7a1c74c0b2bd9f0;hp=0ffcbca762d63575d45e58ec1b3a527214bd6dc6;hb=31495b9e60e01438f5906cb24d484599e4930e66;hpb=b8da5c83743ea31c6f73c063508384f114748537 diff --git a/tests/phpunit/includes/api/ApiEditPageTest.php b/tests/phpunit/includes/api/ApiEditPageTest.php index 0ffcbca762..c82edf0399 100644 --- a/tests/phpunit/includes/api/ApiEditPageTest.php +++ b/tests/phpunit/includes/api/ApiEditPageTest.php @@ -36,14 +36,18 @@ class ApiEditPageTest extends ApiTestCase { $wgContentHandlers["testing"] = 'DummyContentHandlerForTesting'; $wgContentHandlers["testing-nontext"] = 'DummyNonTextContentHandler'; - MWNamespace::getCanonicalNamespaces( true ); # reset namespace cache + MWNamespace::clearCaches(); $wgContLang->resetNamespaces(); # reset namespace cache $this->doLogin(); } protected function tearDown() { - MWNamespace::getCanonicalNamespaces( true ); # reset namespace cache + global $wgContLang; + + MWNamespace::clearCaches(); + $wgContLang->resetNamespaces(); # reset namespace cache + parent::tearDown(); } @@ -204,7 +208,7 @@ class ApiEditPageTest extends ApiTestCase { /** * Test action=edit§ion=new * Run it twice so we test adding a new section on a - * page that doesn't exist (bug 52830) and one that + * page that doesn't exist (T54830) and one that * does exist */ public function testEditNewSection() { @@ -416,7 +420,7 @@ class ApiEditPageTest extends ApiTestCase { $count++; /* - * bug 41990: if the target page has a newer revision than the redirect, then editing the + * T43990: if the target page has a newer revision than the redirect, then editing the * redirect while specifying 'redirect' and *not* specifying 'basetimestamp' erroneously * caused an edit conflict to be detected. */