From 0323c900f75815f271f6fe8f9a87b893350dc9b5 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Tue, 10 Jan 2012 14:26:17 +0000 Subject: [PATCH] StoreBatchText note about using custom repo follow up r108308 --- tests/phpunit/includes/filerepo/StoreBatchTest.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/phpunit/includes/filerepo/StoreBatchTest.php b/tests/phpunit/includes/filerepo/StoreBatchTest.php index bc14f48762..7f60cc9eab 100644 --- a/tests/phpunit/includes/filerepo/StoreBatchTest.php +++ b/tests/phpunit/includes/filerepo/StoreBatchTest.php @@ -6,6 +6,8 @@ class StoreBatchTest extends MediaWikiTestCase { public function setUp() { parent::setUp(); + + # Forge a FSRepo object to not have to rely on local wiki settings $tmpDir = wfTempDir() . '/' . time() . '-' . mt_rand(); $this->repo = new FSRepo( array( 'name' => 'test', @@ -20,8 +22,10 @@ class StoreBatchTest extends MediaWikiTestCase { ) ) ) ) ); + $this->date = gmdate( "YmdHis" ); $this->createdFiles = array(); + $this->users = array( 'sysop' => new ApiTestUser( 'Uploadstashtestsysop', -- 2.20.1