/**
  * @dataProvider provideExcludedPages
  */
 public function testExcludedPages($type, $conf, $title, $include)
 {
     $this->setMwGlobals($type, array($conf));
     $text = '';
     GoogleAnalyticsHooks::onSkinAfterBottomScripts($this->mockSkin(false, $title), $text);
     if ($include) {
         $this->assertContains('No web analytics configured', $text);
     } else {
         $this->assertContains('Web analytics code inclusion is disabled for this page', $text);
     }
 }
 /**
  * We don't want to log hidden categories
  */
 static function onOutputPageMakeCategoryLinks(OutputPage &$out, $categories, &$links)
 {
     self::$normalCats = array_keys($categories, 'normal');
     return true;
 }