https://www.mediawiki.org/wiki/Special:Code/MediaWiki/108307

Revision: 108307
Author:   aaron
Date:     2012-01-07 04:30:23 +0000 (Sat, 07 Jan 2012)
Log Message:
-----------
r108300: also destroy the repo/backend singletons for upload test

Modified Paths:
--------------
    trunk/phase3/tests/phpunit/suites/UploadFromUrlTestSuite.php

Modified: trunk/phase3/tests/phpunit/suites/UploadFromUrlTestSuite.php
===================================================================
--- trunk/phase3/tests/phpunit/suites/UploadFromUrlTestSuite.php        
2012-01-07 04:08:16 UTC (rev 108306)
+++ trunk/phase3/tests/phpunit/suites/UploadFromUrlTestSuite.php        
2012-01-07 04:30:23 UTC (rev 108307)
@@ -75,12 +75,18 @@
                        $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 );
        }
 


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to