public function tearDown() { if (!$this->_transactionId) { Calendar_Controller_Resource::getInstance()->delete($this->_toCleanup->id); } parent::tearDown(); }
public function tearDown() { parent::tearDown(); if (!$this->_transactionId) { $this->cleanupTestCalendars(); } }
/** * Tears down the fixture * This method is called after a test is executed. * * @access protected */ public function tearDown() { parent::tearDown(); if ($this->_emailTestClass instanceof Felamimail_Controller_MessageTest) { $this->_emailTestClass->tearDown(); } Calendar_Config::getInstance()->set(Calendar_Config::MAX_NOTIFICATION_PERIOD_FROM, 1); }
/** * tear down tests * */ public function tearDown() { parent::tearDown(); foreach ($this->_testEmailContacts as $email) { $contactIdsToDelete = Addressbook_Controller_Contact::getInstance()->search(new Addressbook_Model_ContactFilter(array(array('field' => 'containerType', 'operator' => 'equals', 'value' => 'all'), array('field' => 'email', 'operator' => 'equals', 'value' => $email))), null, false, true); Addressbook_Controller_Contact::getInstance()->delete($contactIdsToDelete); } }