From: Aaron Schulz Date: Wed, 10 Oct 2018 04:41:51 +0000 (-0700) Subject: Fix TitlePermissionTest failures due to test leakage X-Git-Tag: 1.34.0-rc.0~3827^2 X-Git-Url: http://git.cyclocoop.org/data/%24oldEdit?a=commitdiff_plain;h=e8f41f68474bef1adafe5a5724b2446bb6f2d31c;p=lhc%2Fweb%2Fwiklou.git Fix TitlePermissionTest failures due to test leakage Bug: T201776 Change-Id: I46d44c031ec45ac0be4c372891d2992c1e4f35ab --- diff --git a/tests/phpunit/includes/HtmlTest.php b/tests/phpunit/includes/HtmlTest.php index 62094b64b5..5cc59b3978 100644 --- a/tests/phpunit/includes/HtmlTest.php +++ b/tests/phpunit/includes/HtmlTest.php @@ -41,10 +41,13 @@ class HtmlTest extends MediaWikiTestCase { } protected function tearDown() { + Language::factory( 'en' )->resetNamespaces(); + if ( $this->restoreWarnings ) { $this->restoreWarnings = false; Wikimedia\restoreWarnings(); } + parent::tearDown(); }