From e8f41f68474bef1adafe5a5724b2446bb6f2d31c Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Tue, 9 Oct 2018 21:41:51 -0700 Subject: [PATCH] Fix TitlePermissionTest failures due to test leakage Bug: T201776 Change-Id: I46d44c031ec45ac0be4c372891d2992c1e4f35ab --- tests/phpunit/includes/HtmlTest.php | 3 +++ 1 file changed, 3 insertions(+) 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(); } -- 2.20.1