/**
  * @covers MWNamespace::getTalkNamespaces
  */
 public function testGetTalkNamespaces()
 {
     $talkNS = MWNamespace::getTalkNamespaces();
     $this->assertContains(NS_TALK, $talkNS, "Subject namespaces should have NS_TALK");
     $this->assertNotContains(NS_MAIN, $talkNS, "Subject namespaces should not have NS_MAIN");
     $this->assertNotContains(NS_MEDIA, $talkNS, "Subject namespaces should not have NS_MEDIA");
     $this->assertNotContains(NS_SPECIAL, $talkNS, "Subject namespaces should not have NS_SPECIAL");
 }
 // Note: Wikibase-production.php overrides this for the test wikis
 $wgWBClientSettings['changesDatabase'] = 'wikidatawiki';
 $wgWBClientSettings['repoDatabase'] = 'wikidatawiki';
 $wgWBClientSettings['repoUrl'] = "//{$wmfHostnames['wikidata']}";
 $wgWBClientSettings['repoNamespaces'] = array('wikibase-item' => '', 'wikibase-property' => 'Property');
 $wgWBClientSettings['languageLinkSiteGroup'] = $wmgWikibaseSiteGroup;
 if (in_array($wgDBname, array('commonswiki', 'mediawikiwiki', 'metawiki', 'specieswiki'))) {
     $wgWBClientSettings['languageLinkSiteGroup'] = 'wikipedia';
 }
 $wgWBClientSettings['siteGroup'] = $wmgWikibaseSiteGroup;
 $wgWBClientSettings['otherProjectsLinksBeta'] = true;
 $wgWBClientSettings['excludeNamespaces'] = function () {
     // @fixme 102 is LiquidThread comments on wikinews and elsewhere?
     // but is the Extension: namespace on mediawiki.org, so we need
     // to allow wiki-specific settings here.
     return array_merge(MWNamespace::getTalkNamespaces(), array(NS_USER, NS_FILE, NS_MEDIAWIKI, 90, 92, 118, 1198, 2600));
 };
 if ($wgDBname === 'wikidatawiki' || $wgDBname === 'testwikidatawiki') {
     $wgWBClientSettings['namespaces'] = array(NS_CATEGORY, NS_PROJECT, NS_TEMPLATE, NS_HELP);
     $wgWBClientSettings['languageLinkSiteGroup'] = 'wikipedia';
     $wgWBClientSettings['injectRecentChanges'] = false;
     $wgWBClientSettings['showExternalRecentChanges'] = false;
 }
 foreach ($wmgWikibaseClientSettings as $setting => $value) {
     $wgWBClientSettings[$setting] = $value;
 }
 $wgWBClientSettings['allowDataTransclusion'] = $wmgWikibaseEnableData;
 $wgWBClientSettings['allowArbitraryDataAccess'] = $wmgWikibaseEnableArbitraryAccess;
 $wgWBClientSettings['entityAccessLimit'] = $wmgWikibaseEntityAccessLimit;
 $wgWBClientSettings['sharedCacheKeyPrefix'] .= $wgWBSharedCacheKey;
 $wgWBClientSettings['sharedCacheDuration'] = 60 * 60 * 24;