StoreBatchText note about using custom repo
authorAntoine Musso <hashar@users.mediawiki.org>
Tue, 10 Jan 2012 14:26:17 +0000 (14:26 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Tue, 10 Jan 2012 14:26:17 +0000 (14:26 +0000)
follow up r108308

tests/phpunit/includes/filerepo/StoreBatchTest.php

index bc14f48..7f60cc9 100644 (file)
@@ -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',