r108503 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r108502‎ | r108503 | r108504 >
Date:14:26, 10 January 2012
Author:hashar
Status:ok
Tags:
Comment:
StoreBatchText note about using custom repo

follow up r108308
Modified paths:
  • /trunk/phase3/tests/phpunit/includes/filerepo/StoreBatchTest.php (modified) (history)

Diff [purge]

Index: trunk/phase3/tests/phpunit/includes/filerepo/StoreBatchTest.php
@@ -6,6 +6,8 @@
77
88 public function setUp() {
99 parent::setUp();
 10+
 11+ # Forge a FSRepo object to not have to rely on local wiki settings
1012 $tmpDir = wfTempDir() . '/' . time() . '-' . mt_rand();
1113 $this->repo = new FSRepo( array(
1214 'name' => 'test',
@@ -20,8 +22,10 @@
2123 )
2224 ) )
2325 ) );
 26+
2427 $this->date = gmdate( "YmdHis" );
2528 $this->createdFiles = array();
 29+
2630 $this->users = array(
2731 'sysop' => new ApiTestUser(
2832 'Uploadstashtestsysop',

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r108308Dependency inject the repo/backend for proper testing rather than relying on ...aaron06:13, 7 January 2012

Status & tagging log