/**
  * @dataProvider handleHistoryActionWithEmptyLangLinksProvider
  */
 public function testHandle_HistoryActionWithEmptyLangLinks($expectedJsModules, $expectedCssModules, $enabledForNamespace, $langLinks, $prefixedId, $loggedIn)
 {
     $skin = $this->getSkin($loggedIn, true);
     $output = $this->getOutputPage($skin, $langLinks, $prefixedId);
     $namespaceChecker = $this->getNamespaceChecker($enabledForNamespace);
     $handler = new BeforePageDisplayHandler($namespaceChecker);
     $handler->addModules($output, 'history');
     $this->assertEquals($expectedJsModules, $output->getModules(), 'js modules');
     $this->assertEquals($expectedCssModules, $output->getModuleStyles(), 'css modules');
 }
 /**
  * Adds css for the edit links sidebar link or JS to create a new item
  * or to link with an existing one.
  *
  * @param OutputPage &$out
  * @param Skin &$skin
  *
  * @since 0.1
  *
  * @return bool
  */
 public static function onBeforePageDisplay(OutputPage &$out, Skin &$skin)
 {
     $namespaceChecker = WikibaseClient::getDefaultInstance()->getNamespaceChecker();
     $beforePageDisplayHandler = new BeforePageDisplayHandler($namespaceChecker);
     $actionName = Action::getActionName($skin->getContext());
     $beforePageDisplayHandler->addModules($out, $actionName);
     return true;
 }