/** * (non-PHPdoc) * @see tests/tine20/Crm/AbstractTest::setUp() */ public function setUp() { parent::setUp(); $smtpConfig = Tinebase_Config::getInstance()->get(Tinebase_Config::SMTP, new Tinebase_Config_Struct())->toArray(); if (empty($smtpConfig)) { $this->markTestSkipped('No SMTP config found: this is needed to send notifications.'); } $this->_leadController = Crm_Controller_Lead::getInstance(); }
/** * Tears down the fixture * This method is called after a test is executed. * * @access protected */ protected function tearDown() { if (isset($this->_objects['paths'])) { foreach ($this->_objects['paths'] as $path) { try { $this->_fsController->rmdir($path, TRUE); } catch (Tinebase_Exception_NotFound $tenf) { // already deleted } } } parent::tearDown(); Crm_Controller_Lead::getInstance()->duplicateCheckFields(array('lead_name')); }