From 9e74cdbd21ba12b56b4722fca1f515b2186df85e Mon Sep 17 00:00:00 2001 From: Russ Nelson Date: Fri, 16 Dec 2011 19:59:58 +0000 Subject: [PATCH] clean up temp files. Fixes r99546 --- tests/phpunit/includes/filerepo/StoreBatchTest.php | 3 +++ 1 file changed, 3 insertions(+) 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(); } -- 2.20.1