/** * @dataProvider missingTranslationProviderAdmin */ public function testTranslateAdmin_isMissingTranslation($sIdent, $sTranslation) { $oSmarty = new Smarty(); $this->setLanguage(1); $this->setAdminMode(true); $this->assertEquals($sTranslation, smarty_modifier_oxmultilangassign($sIdent, $oSmarty)); }
<?php /* Smarty version 2.6.26, created on 2013-05-12 23:07:56 compiled from theme_list.tpl */ require_once SMARTY_CORE_DIR . 'core.load_plugins.php'; smarty_core_load_plugins(array('plugins' => array(array('modifier', 'oxmultilangassign', 'theme_list.tpl', 1, false), array('modifier', 'oxaddslashes', 'theme_list.tpl', 83, false), array('function', 'oxmultilang', 'theme_list.tpl', 50, false), array('function', 'counter', 'theme_list.tpl', 57, false), array('function', 'cycle', 'theme_list.tpl', 58, false))), $this); $_smarty_tpl_vars = $this->_tpl_vars; $this->_smarty_include(array('smarty_include_tpl_file' => "headitem.tpl", 'smarty_include_vars' => array('title' => is_array($_tmp = 'GENERAL_ADMIN_TITLE') ? $this->_run_mod_handler('oxmultilangassign', true, $_tmp) : smarty_modifier_oxmultilangassign($_tmp), 'box' => 'list'))); $this->_tpl_vars = $_smarty_tpl_vars; unset($_smarty_tpl_vars); ?> <?php if ($this->_tpl_vars['readonly']) { ?> <?php $this->assign('readonly', 'readonly disabled'); } else { ?> <?php $this->assign('readonly', ""); } ?> <script type="text/javascript"> <!-- window.onload = function () { top.reloadEditFrame(); <?php if ($this->_tpl_vars['updatelist'] == 1) {