Index: trunk/phase3/tests/phpunit/includes/filerepo/StoreBatchTest.php |
— | — | @@ -9,6 +9,7 @@ |
10 | 10 | |
11 | 11 | $this->repo = RepoGroup::singleton()->getLocalRepo(); |
12 | 12 | $this->date = gmdate( "YmdHis" ); |
| 13 | + $this->createdFiles = array(); |
13 | 14 | $this->users = array( |
14 | 15 | 'sysop' => new ApiTestUser( |
15 | 16 | 'Uploadstashtestsysop', |
— | — | @@ -39,6 +40,7 @@ |
40 | 41 | |
41 | 42 | $result = $this->repo->store( $srcPath, 'temp', $dstRel, $flags ); |
42 | 43 | $result->value = $this->repo->getVirtualUrl( 'temp' ) . '/' . $dstUrlRel; |
| 44 | + $this->createdFiles[] = $result->value; |
43 | 45 | return $result; |
44 | 46 | } |
45 | 47 | |
— | — | @@ -93,6 +95,7 @@ |
94 | 96 | } |
95 | 97 | |
96 | 98 | public function tearDown() { |
| 99 | + $this->repo->cleanupBatch( $this->createdFile ); |
97 | 100 | parent::tearDown(); |
98 | 101 | |
99 | 102 | } |