protected function setUp() { $this->testingFramework = new Tx_Oelib_TestingFramework('tx_seminars'); $this->configuration = new Tx_Oelib_Configuration(); $this->configuration->setAsString('timeFormat', self::TIME_FORMAT); Tx_Oelib_ConfigurationRegistry::getInstance()->set('plugin.tx_seminars', $this->configuration); $this->translator = Tx_Oelib_TranslatorRegistry::getInstance()->get('seminars'); $this->translatedHours = ' ' . $this->translator->translate('label_hours'); $this->subject = new tx_seminars_ViewHelper_TimeRange(); }
/** * The constructor. */ public function __construct() { $this->configuration = Tx_Oelib_ConfigurationRegistry::getInstance()->get('plugin.tx_seminars'); $this->translator = Tx_Oelib_TranslatorRegistry::getInstance()->get('seminars'); }
/** * @test */ public function setLanguageKeyForEmptyStringGivenThrowsException() { $this->setExpectedException('InvalidArgumentException', 'The given language key must not be empty.'); Tx_Oelib_TranslatorRegistry::getInstance()->setLanguageKey(''); }
/** * the constructor */ public function __construct() { $this->translator = Tx_Oelib_TranslatorRegistry::getInstance()->get('seminars'); }