From: Russ Nelson Date: Fri, 16 Dec 2011 19:59:58 +0000 (+0000) Subject: clean up temp files. Fixes r99546 X-Git-Tag: 1.31.0-rc.0~25932 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=9e74cdbd21ba12b56b4722fca1f515b2186df85e;p=lhc%2Fweb%2Fwiklou.git clean up temp files. Fixes r99546 --- diff --git a/tests/phpunit/includes/filerepo/StoreBatchTest.php b/tests/phpunit/includes/filerepo/StoreBatchTest.php index 60eba77310..e67c485b20 100644 --- a/tests/phpunit/includes/filerepo/StoreBatchTest.php +++ b/tests/phpunit/includes/filerepo/StoreBatchTest.php @@ -9,6 +9,7 @@ class StoreBatchTest extends MediaWikiTestCase { $this->repo = RepoGroup::singleton()->getLocalRepo(); $this->date = gmdate( "YmdHis" ); + $this->createdFiles = array(); $this->users = array( 'sysop' => new ApiTestUser( 'Uploadstashtestsysop', @@ -39,6 +40,7 @@ class StoreBatchTest extends MediaWikiTestCase { $result = $this->repo->store( $srcPath, 'temp', $dstRel, $flags ); $result->value = $this->repo->getVirtualUrl( 'temp' ) . '/' . $dstUrlRel; + $this->createdFiles[] = $result->value; return $result; } @@ -93,6 +95,7 @@ class StoreBatchTest extends MediaWikiTestCase { } public function tearDown() { + $this->repo->cleanupBatch( $this->createdFile ); parent::tearDown(); }