From: Antoine Musso Date: Tue, 10 Jan 2012 14:26:17 +0000 (+0000) Subject: StoreBatchText note about using custom repo X-Git-Tag: 1.31.0-rc.0~25371 X-Git-Url: https://git.heureux-cyclage.org/?a=commitdiff_plain;h=0323c900f75815f271f6fe8f9a87b893350dc9b5;p=lhc%2Fweb%2Fwiklou.git StoreBatchText note about using custom repo follow up r108308 --- 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',