23 ->disableOriginalConstructor()->getMock();
25 $mock->expects( $this->
any() )
26 ->method(
'getLocalDomainID' )
27 ->willReturn( $localDomain );
37 ->disableOriginalConstructor()->getMock();
40 $localDomain = $lbFactory->getLocalDomainID();
42 $mock->expects( $this->
any() )->method(
'getLocalDomainID' )->willReturn( $localDomain );
44 $mock->expects( $this->
once() )
45 ->method(
'getMainLB' )
46 ->with( $this->
equalTo( $expectedWiki ) )
47 ->willReturnCallback(
function ( $domain ) use ( $localDomain ) {
80 public function testGet( $tableName, $wiki, $expectedWiki ) {
82 $wiki2 = ( $wiki ===
false )
83 ?
$services->getDBLoadBalancerFactory()->getLocalDomainID()
88 LoggerFactory::getInstance(
'NameTableStoreFactory' )
91 $table = $names->get( $tableName, $wiki );
92 $table2 = $names->get( $tableName, $wiki2 );
104 $factory =
$services->getNameTableStoreFactory();
105 $store = $factory->getChangeTagDef();
106 $this->
assertType(
'array', $store->getMap() );
111 $factory =
$services->getNameTableStoreFactory();
112 $store = $factory->getContentModels();
113 $this->
assertType(
'array', $store->getMap() );
118 $factory =
$services->getNameTableStoreFactory();
119 $store = $factory->getSlotRoles();
120 $this->
assertType(
'array', $store->getMap() );
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
they could even be mouse clicks or menu items whatever suits your program You should also get your if any
static configuration should be added through ResourceLoaderGetConfigVars instead can be used to get the real title e g db for database replication lag or jobqueue for job queue size converted to pseudo seconds It is possible to add more fields and they will be returned to the user in the API response after the basic globals have been set but before ordinary actions take place or wrap services the preferred way to define a new service is the $wgServiceWiringFiles array $services
processing should stop and the error should be shown to the user * false