<?php
/**
- * Specificly for testing Media handlers. Sets up a FSFile backend
+ * Specificly for testing Media handlers. Sets up a FileRepo backend
*/
abstract class MediaWikiMediaTestCase extends MediaWikiTestCase {
- /** @var FSRepo */
+ /** @var FileRepo */
protected $repo;
/** @var FSFileBackend */
protected $backend;
$this->backend = new FSFileBackend( [
'name' => 'localtesting',
- 'wikiId' => wfWikiId(),
- 'containerPaths' => $containers
+ 'wikiId' => wfWikiID(),
+ 'containerPaths' => $containers,
+ 'tmpDirectory' => $this->getNewTempDirectory()
] );
- $this->repo = new FSRepo( $this->getRepoOptions() );
+ $this->repo = new FileRepo( $this->getRepoOptions() );
}
/**