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,
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two and(2) offer you this license which gives you legal permission to copy
$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.
The wiki should then use memcached to cache various data To use multiple just add more items to the array To increase the weight of a make its entry a array("192.168.0.1:11211", 2))