From 3e26c05e80f7575ab2a062c214eded827d6304ca Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sat, 10 Dec 2011 20:08:58 +0000 Subject: [PATCH] * Fixed failing FlaggedRevs tests (one due global to leaks from a core test) and made it clean up the DB table afterwards --- tests/phpunit/includes/MWNamespaceTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/phpunit/includes/MWNamespaceTest.php b/tests/phpunit/includes/MWNamespaceTest.php index 17104f9638..1e7c20dabf 100644 --- a/tests/phpunit/includes/MWNamespaceTest.php +++ b/tests/phpunit/includes/MWNamespaceTest.php @@ -388,6 +388,7 @@ class MWNamespaceTest extends MediaWikiTestCase { global $wgContentNamespaces; + $saved = $wgContentNamespaces; # test !is_array( $wgcontentNamespaces ) $wgContentNamespaces = ''; $this->assertEquals( NS_MAIN, MWNamespace::getcontentNamespaces() ); @@ -423,6 +424,7 @@ class MWNamespaceTest extends MediaWikiTestCase { MWNamespace::getcontentNamespaces() ); + $wgContentNamespaces = $saved; } /** -- 2.20.1