/** * (non-PHPdoc) * @see PHPUnit_Framework_TestCase::setUp() */ protected function setUp() { tx_mklib_tests_Util::disableDevlog(); }
public function setUp() { tx_mklib_tests_Util::disableDevlog(); }
/** * (non-PHPdoc) * @see PHPUnit_Framework_TestCase::setUp() */ protected function setUp() { tx_mklib_tests_Util::disableDevlog(); $this->languageBackup = $GLOBALS['LANG']->lang; $GLOBALS['LANG']->lang = 'default'; }
/** * tearDown() = destroy DB etc. */ public function tearDown() { $this->cleanDatabase(); $this->dropDatabase(); $GLOBALS['TYPO3_DB']->sql_select_db(TYPO3_db); $GLOBALS['BE_USER']->setWorkspace($this->workspaceIdAtStart); // devlog wieder deaktivieren tx_mklib_tests_Util::disableDevlog(); // ext conf zurückspielen aktivieren tx_mklib_tests_Util::restoreExtConf(); tx_mklib_tests_Util::restoreExtConf('devlog'); $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['rn_base']['util_db_do_insert_post'] = self::$hooks['rn_base']['util_db_do_insert_post']; $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['rn_base']['util_db_do_update_post'] = self::$hooks['rn_base']['util_db_do_update_post']; $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['rn_base']['util_db_do_delete_pre'] = self::$hooks['rn_base']['util_db_do_delete_pre']; }
/** * Sets up the fixture, for example, open a network connection. * This method is called before a test is executed. * * setUp() = init DB etc. */ protected function setUp() { //Devlog stört beim Testen nur tx_mklib_tests_Util::disableDevlog(); $this->createDatabase(); // assuming that test-database can be created otherwise PHPUnit will skip the test $this->useTestDatabase(); $this->importStdDB(); // extensions laden if (count($this->importExtensions)) { foreach ($this->importExtensions as $extension) { $this->importExtensions(array($extension), $this->importDependencies); // static tables in die db importieren if ($this->importStaticTables) { self::importStaticTables($extension); } } // $this->importExtensions($this->importExtensions); } // fixtures laden if (count($this->importDataSet)) { foreach ($this->importDataSet as $fixturePath) { $this->importDataSet(t3lib_div::getFileAbsFileName($fixturePath)); } } }