public function testSkipsDictionariesWithoutCustomSuffixInFilenameCustom() { $this->createLoader('testlangcode'); $dictionariesDir = $this->resourcesDir . '/no-dictionaries'; $this->dictionaryLoader->addFromDir($dictionariesDir); Phake::verify($this->templateMock, Phake::times(0))->includeInlineTranslation(Phake::anyParameters()); }
/** * Main template for JANUS. * * @author Jacob Christiansen, <*****@*****.**> * @author Sixto MartÃn, <*****@*****.**> * @package simpleSAMLphp * @subpackage JANUS * @version $Id: janus-main.php 11 2009-03-27 13:51:02Z jach@wayf.dk $ * @todo Use some sort of form generator to reduce to amount of code and make it more robust */ $janus_config = sspmod_janus_DiContainer::getInstance()->getConfig(); $ssp_config = SimpleSAML_Configuration::getConfig(); $csrf_provider = sspmod_janus_DiContainer::getInstance()->getCsrfProvider(); $csrf_ajax_token_json_encoded = json_encode($csrf_provider->generateCsrfToken('ajax')); // Load custom translations for metadata fields $customDictionaryLoader = new sspmod_janus_CustomDictionaryLoader($this); $dictionaryDir = sspmod_janus_DiContainer::getInstance()->getRootDir() . '/dictionaries'; $customDictionaryLoader->addFromDir($dictionaryDir); $this->cookie_name = $ssp_config->getString('session.cookie.name', 'SimpleSAMLSessionID'); $this->data['head'] = '<link rel="stylesheet" type="text/css" href="/' . $this->data['baseurlpath'] . 'module.php/janus/resources/style.css" />' . "\n"; $this->data['head'] .= '<link rel="stylesheet" type="text/css" href="/' . $this->data['baseurlpath'] . 'module.php/janus/resources/styles/simptip-mini.css" />' . "\n"; $this->data['head'] .= '<link rel="stylesheet" type="text/css" href="/' . $this->data['baseurlpath'] . 'module.php/janus/resources/styles/jsondiff/jsondiffpatch.html.css" />' . "\n"; $this->data['head'] .= '<link rel="stylesheet" type="text/css" href="/' . $this->data['baseurlpath'] . 'module.php/janus/resources/components/jqueryui/themes/smoothness/jquery-ui.min.css" />' . "\n"; $this->data['head'] .= '<link rel="stylesheet" type="text/css" href="/' . $this->data['baseurlpath'] . 'module.php/janus/resources/styles/tablesorter.default.css" />' . "\n"; $this->data['head'] .= '<link rel="stylesheet" type="text/css" href="/' . $this->data['baseurlpath'] . 'module.php/janus/resources/styles/validate.css" />' . "\n"; $this->data['head'] .= '<link rel="stylesheet" type="text/css" href="/' . $this->data['baseurlpath'] . 'module.php/janus/resources/styles/revisions.css" />' . "\n"; $this->data['head'] .= '<link rel="stylesheet" type="text/css" href="/' . $this->data['baseurlpath'] . 'module.php/janus/resources/styles/arp.css" />' . "\n"; $this->data['head'] .= '<link rel="stylesheet" type="text/css" href="/' . $this->data['baseurlpath'] . 'module.php/janus/resources/styles/metadata.css" />' . "\n"; $this->data['head'] .= '<link rel="stylesheet" type="text/css" href="/' . $this->data['baseurlpath'] . 'module.php/janus/resources/styles/editentity-wblist.css" />' . "\n"; $this->data['head'] .= '<script type="text/javascript" src="/' . $this->data['baseurlpath'] . 'module.php/janus/resources/components/jquery/jquery.min.js"></script>' . "\n"; $this->data['head'] .= '<script type="text/javascript" src="/' . $this->data['baseurlpath'] . 'module.php/janus/resources/components/jqueryui/ui/minified/jquery-ui.custom.min.js"></script>' . "\n";