/** * @test */ public function doesReturnExtConfReturnMergedSettingsIfExtensionConfigurationIsFound() { $setting = array('setting' => 1); $GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['saltedpasswords'] = serialize(array('TEST_MODE.' => $setting)); $this->assertEquals(array_merge(tx_saltedpasswords_div::returnExtConfDefaults(), $setting), tx_saltedpasswords_div::returnExtConf('TEST_MODE')); }
/** * Checks if service is available. In case of this service we check that * following prerequesties are fulfilled: * - loginSecurityLevel of according TYPO3_MODE is set to normal * * @return boolean TRUE if service is available */ public function init() { $available = FALSE; if (tx_saltedpasswords_div::isUsageEnabled()) { $available = TRUE; $this->extConf = tx_saltedpasswords_div::returnExtConf(); } return $available ? parent::init() : FALSE; }