18 $fakeCallback = $this->createMock(
'RepoGroupTestHelper' );
19 $fakeCallback->expects( $this->once() )->method(
'callback' );
21 [ $fakeCallback,
'callback' ], [ [] ] );
28 $fakeCallback = $this->createMock(
'RepoGroupTestHelper' );
29 $fakeCallback->expects( $this->never() )->method(
'callback' );
31 [ $fakeCallback,
'callback' ], [ [] ] );
37 'class' =>
'ForeignAPIRepo',
38 'name' =>
'wikimediacommons',
39 'backend' =>
'wikimediacommons-backend',
40 'apibase' =>
'https://commons.wikimedia.org/w/api.php',
42 'fetchDescription' =>
true,
43 'descriptionCacheExpiry' => 43200,
44 'apiThumbCacheExpiry' => 86400,
45 'directory' => $wgUploadDirectory
$wgUploadDirectory
The filesystem path of the images directory.
static destroySingleton()
Destroy the singleton instance.
Base class for file repositories.
Quick helper class to use as a mock callback for RepoGroup::singleton()->forEachForeignRepo.
callback(FileRepo $repo, array $foo)
testForEachForeignRepoNone()
testHasForeignRepoPositive()
testHasForeignRepoNegative()
static singleton()
Get a RepoGroup instance.
static destroySingleton()
Destroy the singleton instance, so that a new one will be created next time singleton() is called.