public static function removeAllCreatedAddresses() { $ids = self::getCreatedEmailAddressIds(); if (count($ids) > 0) { $GLOBALS['db']->query('DELETE FROM email_addresses WHERE id IN (\'' . implode("', '", $ids) . '\')'); } self::$createdAddresses = array(); }
/** * Tears down the fixture, for example, close a network connection. * This method is called after a test is executed. */ protected function tearDown() { $_REQUEST = array(); SugarTestEmailAddressUtilities::removeAllCreatedAddresses(); SugarTestUserUtilities::removeAllCreatedAnonymousUsers(); if ($this->duplicate) { $this->duplicate->mark_deleted($this->duplicate->id); } }