Index: trunk/phase3/tests/phpunit/includes/filerepo/StoreBatchTest.php |
— | — | @@ -6,6 +6,8 @@ |
7 | 7 | |
8 | 8 | public function setUp() { |
9 | 9 | parent::setUp(); |
| 10 | + |
| 11 | + # Forge a FSRepo object to not have to rely on local wiki settings |
10 | 12 | $tmpDir = wfTempDir() . '/' . time() . '-' . mt_rand(); |
11 | 13 | $this->repo = new FSRepo( array( |
12 | 14 | 'name' => 'test', |
— | — | @@ -20,8 +22,10 @@ |
21 | 23 | ) |
22 | 24 | ) ) |
23 | 25 | ) ); |
| 26 | + |
24 | 27 | $this->date = gmdate( "YmdHis" ); |
25 | 28 | $this->createdFiles = array(); |
| 29 | + |
26 | 30 | $this->users = array( |
27 | 31 | 'sysop' => new ApiTestUser( |
28 | 32 | 'Uploadstashtestsysop', |