Fix TitlePermissionTest failures due to test leakage
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 10 Oct 2018 04:41:51 +0000 (21:41 -0700)
committerKrinkle <krinklemail@gmail.com>
Wed, 10 Oct 2018 23:17:13 +0000 (23:17 +0000)
Bug: T201776
Change-Id: I46d44c031ec45ac0be4c372891d2992c1e4f35ab

tests/phpunit/includes/HtmlTest.php

index 62094b6..5cc59b3 100644 (file)
@@ -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();
        }