Index: trunk/phase3/tests/phpunit/suites/UploadFromUrlTestSuite.php |
— | — | @@ -75,12 +75,18 @@ |
76 | 76 | $wgStyleDirectory = "$IP/skins"; |
77 | 77 | } |
78 | 78 | |
| 79 | + RepoGroup::destroySingleton(); |
| 80 | + FileBackendGroup::destroySingleton(); |
79 | 81 | } |
80 | 82 | |
81 | 83 | public function tearDown() { |
82 | 84 | foreach ( $this->savedGlobals as $var => $val ) { |
83 | 85 | $GLOBALS[$var] = $val; |
84 | 86 | } |
| 87 | + // Restore backends |
| 88 | + RepoGroup::destroySingleton(); |
| 89 | + FileBackendGroup::destroySingleton(); |
| 90 | + |
85 | 91 | $this->teardownUploadDir( $this->uploadDir ); |
86 | 92 | } |
87 | 93 | |