/** * * Enter description here ... */ public function setUp() { tx_mklib_tests_Util::storeExtConf('mklib'); tx_mklib_tests_Util::setExtConfVar('specialCharMarker', 'SPECIALCHAR_', 'mklib'); }
/** * setUp() = init DB etc. */ public function setUp() { $this->createDatabase(); // assuming that test-database can be created otherwise PHPUnit will skip the test $this->db = $this->useTestDatabase(); $this->importStdDB(); $ttContentExtension = tx_rnbase_util_TYPO3::isTYPO62OrHigher() ? 'frontend' : 'cms'; $this->importExtensions(array($ttContentExtension, 'devlog')); // devlog wieder aktivieren tx_mklib_tests_Util::disableDevlog('devlog', false); // logging aktivieren tx_mklib_tests_Util::storeExtConf(); tx_mklib_tests_Util::setExtConfVar('logDbHandler', 1); //logging zurücksetzen tx_mklib_util_testDB::clearLogCache(); //wir setzen noch das min Log Level auf -1 damit //systemeinstellungen nicht hereinspielen und alles geloggt wird tx_mklib_tests_Util::storeExtConf('devlog'); tx_mklib_tests_Util::setExtConfVar('minLogLevel', -1, 'devlog'); // Hooks leer machen da die aus anderen extensions stören könnten self::$hooks['rn_base']['util_db_do_insert_post'] = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['rn_base']['util_db_do_insert_post']; self::$hooks['rn_base']['util_db_do_update_post'] = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['rn_base']['util_db_do_update_post']; self::$hooks['rn_base']['util_db_do_delete_pre'] = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['rn_base']['util_db_do_delete_pre']; $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['rn_base']['util_db_do_insert_post'] = array(); $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['rn_base']['util_db_do_update_post'] = array(); $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['rn_base']['util_db_do_delete_pre'] = array(); }
/** * setUp() = Extension-Konfiguration speichern */ public function setUp() { tx_mklib_tests_Util::storeExtConf('mklib'); tx_mklib_tests_Util::storeExtConf('mktest'); }
/** * Wird vor jedem Test aufgerufen. */ public function setUp() { //Die Extension Konfiguration sichern. tx_mklib_tests_Util::storeExtConf(); }