22 $fakeCallback = $this->createMock( RepoGroupTestHelper::class );
23 $fakeCallback->expects( $this->once() )->method(
'callback' );
25 [ $fakeCallback,
'callback' ], [ [] ] );
32 $fakeCallback = $this->createMock( RepoGroupTestHelper::class );
33 $fakeCallback->expects( $this->never() )->method(
'callback' );
35 [ $fakeCallback,
'callback' ], [ [] ] );
41 'class' => ForeignAPIRepo::class,
42 'name' =>
'wikimediacommons',
43 'backend' =>
'wikimediacommons-backend',
44 'apibase' =>
'https://commons.wikimedia.org/w/api.php',
46 'fetchDescription' =>
true,
47 'descriptionCacheExpiry' => 43200,
48 'apiThumbCacheExpiry' => 86400,
$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.