From 29c8fd2a3f4473d92f18565b982b9880bcd0c7b7 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sat, 7 Jan 2012 04:30:23 +0000 Subject: [PATCH] r108300: also destroy the repo/backend singletons for upload test --- tests/phpunit/suites/UploadFromUrlTestSuite.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/phpunit/suites/UploadFromUrlTestSuite.php b/tests/phpunit/suites/UploadFromUrlTestSuite.php index 5f82b5272b..6779ad4781 100644 --- a/tests/phpunit/suites/UploadFromUrlTestSuite.php +++ b/tests/phpunit/suites/UploadFromUrlTestSuite.php @@ -75,12 +75,18 @@ class UploadFromUrlTestSuite extends PHPUnit_Framework_TestSuite { $wgStyleDirectory = "$IP/skins"; } + RepoGroup::destroySingleton(); + FileBackendGroup::destroySingleton(); } public function tearDown() { foreach ( $this->savedGlobals as $var => $val ) { $GLOBALS[$var] = $val; } + // Restore backends + RepoGroup::destroySingleton(); + FileBackendGroup::destroySingleton(); + $this->teardownUploadDir( $this->uploadDir ); } -- 2.20.1