當前位置: 首頁>>代碼示例>>PHP>>正文


PHP SugarTestContactUtilities類代碼示例

本文整理匯總了PHP中SugarTestContactUtilities的典型用法代碼示例。如果您正苦於以下問題:PHP SugarTestContactUtilities類的具體用法?PHP SugarTestContactUtilities怎麽用?PHP SugarTestContactUtilities使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了SugarTestContactUtilities類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: tearDown

 public function tearDown()
 {
     SugarTestAccountUtilities::removeAllCreatedAccounts();
     SugarTestContactUtilities::removeAllCreatedContacts();
     SugarTestUserUtilities::removeAllCreatedAnonymousUsers();
     SugarTestHelper::tearDown();
 }
開發者ID:delkyd,項目名稱:sugarcrm_dev,代碼行數:7,代碼來源:Bug51679Test.php

示例2: testConvertLinkingExistingContact

 /**
  * Create a lead and convert it to an existing Account and Contact
  */
 public function testConvertLinkingExistingContact()
 {
     // Create records
     $lead = SugarTestLeadUtilities::createLead();
     $account = SugarTestAccountUtilities::createAccount();
     $contact = SugarTestContactUtilities::createContact();
     // ConvertLead to an existing Contact and Account
     $_REQUEST = array('module' => 'Leads', 'record' => $lead->id, 'isDuplicate' => 'false', 'action' => 'ConvertLead', 'convert_create_Contacts' => 'false', 'report_to_name' => $contact->name, 'reports_to_id' => $contact->id, 'convert_create_Accounts' => 'false', 'account_name' => $account->name, 'account_id' => $account->id, 'handle' => 'save');
     // Call display to trigger conversion
     $vc = new ViewConvertLead();
     $vc->display();
     // Refresh Lead
     $leadId = $lead->id;
     $lead = new Lead();
     $lead->retrieve($leadId);
     // Refresh Contact
     $contactId = $contact->id;
     $contact = new Contact();
     $contact->retrieve($contactId);
     // Check if contact it's linked properly
     $this->assertEquals($contact->id, $lead->contact_id, 'Contact not linked with Lead successfully.');
     // Check if account is linked with lead properly
     $this->assertEquals($account->id, $lead->account_id, 'Account not linked with Lead successfully.');
     // Check if account is linked with contact properly
     $this->assertEquals($account->id, $contact->account_id, 'Account not linked with Contact successfully.');
     // Check Lead Status, should be converted
     $this->assertEquals('Converted', $lead->status, "Lead status should be 'Converted'.");
 }
開發者ID:delkyd,項目名稱:sugarcrm_dev,代碼行數:31,代碼來源:Bug50127Test.php

示例3: testGetNamePlusEmailAddressesForComposePersonModule

 public function testGetNamePlusEmailAddressesForComposePersonModule()
 {
     $contact = SugarTestContactUtilities::createContact();
     $email = new Email();
     $this->assertEquals($GLOBALS['locale']->getLocaleFormattedName($contact->first_name, $contact->last_name, $contact->salutation, $contact->title) . " <{$contact->email1}>", $email->getNamePlusEmailAddressesForCompose('Contacts', array($contact->id)));
     SugarTestContactUtilities::removeAllCreatedContacts();
 }
開發者ID:thsonvt,項目名稱:sugarcrm_dev,代碼行數:7,代碼來源:GetNamePlusEmailAddressesForComposeTest.php

示例4: tearDown

 public function tearDown()
 {
     $this->contact->field_defs = $this->defs;
     SugarTestUserUtilities::removeAllCreatedAnonymousUsers();
     unset($GLOBALS['current_user']);
     SugarTestContactUtilities::removeAllCreatedContacts();
 }
開發者ID:netconstructor,項目名稱:sugarcrm_dev,代碼行數:7,代碼來源:Bug39780Test.php

示例5: tearDown

 public function tearDown()
 {
     SugarTestHelper::tearDown();
     SugarTestAccountUtilities::removeAllCreatedAccounts();
     SugarTestContactUtilities::removeAllCreatedContacts();
     SugarTestLeadUtilities::removeAllCreatedLeads();
 }
開發者ID:delkyd,項目名稱:sugarcrm_dev,代碼行數:7,代碼來源:Bug25736ExportTest.php

示例6: tearDown

 public function tearDown()
 {
     $this->relateField->delete($this->df);
     $this->rc->repairAndClearAll(array("rebuildExtensions", "clearVardefs"), array("Contact"), false, false);
     SugarTestAccountUtilities::removeAllCreatedAccounts();
     SugarTestContactUtilities::removeAllCreatedContacts();
     SugarTestHelper::tearDown();
 }
開發者ID:thsonvt,項目名稱:sugarcrm_dev,代碼行數:8,代碼來源:Bug52173Test.php

示例7: tearDown

 /**
  * Tears down the fixture, for example, close a network connection.
  * This method is called after a test is executed.
  */
 public function tearDown()
 {
     SugarTestAccountUtilities::removeAllCreatedAccounts();
     SugarTestOpportunityUtilities::removeAllCreatedOpportunities();
     SugarTestContactUtilities::removeAllCreatedContacts();
     parent::tearDown();
     SugarTestHelper::tearDown();
 }
開發者ID:delkyd,項目名稱:sugarcrm_dev,代碼行數:12,代碼來源:Bug56652Test.php

示例8: tearDown

 public function tearDown()
 {
     SugarTestAccountUtilities::removeAllCreatedAccounts();
     SugarTestContactUtilities::removeAllCreatedContacts();
     parent::tearDown();
     parent::_tearDownTestUser();
     SugarTestHelper::tearDown();
 }
開發者ID:delkyd,項目名稱:sugarcrm_dev,代碼行數:8,代碼來源:Bug38858Test.php

示例9: tearDown

 public function tearDown()
 {
     SugarTestContactUtilities::removeAllCreatedContacts();
     unset($this->contact);
     unset($GLOBALS['beanFiles'], $GLOBALS['beanList']);
     SugarTestUserUtilities::removeAllCreatedAnonymousUsers();
     unset($GLOBALS['current_user']);
 }
開發者ID:delkyd,項目名稱:sugarcrm_dev,代碼行數:8,代碼來源:Bug51264Test.php

示例10: tearDownAfterClass

 public static function tearDownAfterClass()
 {
     SugarTestUserUtilities::removeAllCreatedAnonymousUsers();
     SugarTestContactUtilities::removeAllCreatedContacts();
     SugarTestAccountUtilities::removeAllCreatedAccounts();
     unset($GLOBALS['current_user']);
     $GLOBALS['db']->commit();
 }
開發者ID:delkyd,項目名稱:sugarcrm_dev,代碼行數:8,代碼來源:SOAPTestCase.php

示例11: tearDownAfterClass

 public static function tearDownAfterClass()
 {
     unset($_REQUEST['data']);
     unset($_REQUEST['query']);
     SugarTestContactUtilities::removeAllCreatedContacts();
     unset($GLOBALS['beanList']);
     unset($GLOBALS['beanFiles']);
 }
開發者ID:delkyd,項目名稱:sugarcrm_dev,代碼行數:8,代碼來源:Bug43395Test.php

示例12: tearDown

 public function tearDown()
 {
     SugarTestContactUtilities::removeAllCreatedContacts();
     SugarTestAccountUtilities::removeAllCreatedAccounts();
     SugarTestEmailUtilities::removeAllCreatedEmails();
     SugarTestUserUtilities::removeAllCreatedAnonymousUsers();
     unset($GLOBALS['current_user']);
 }
開發者ID:jgera,項目名稱:sugarcrm_dev,代碼行數:8,代碼來源:Bug40527Test.php

示例13: tearDown

 public function tearDown()
 {
     SugarTestUserUtilities::removeAllCreatedAnonymousUsers();
     SugarTestContactUtilities::removeAllCreatedContacts();
     SugarTestContactUtilities::removeCreatedContactsEmailAddresses();
     unset($this->form);
     unset($this->contact1);
 }
開發者ID:delkyd,項目名稱:sugarcrm_dev,代碼行數:8,代碼來源:ContactFormBaseTest.php

示例14: tearDown

 public function tearDown()
 {
     $GLOBALS["db"]->query("DELETE FROM inbound_email WHERE id = '{$this->ie->id}'");
     $GLOBALS["db"]->query("DELETE FROM cases WHERE name = '{$this->ie->casename}'");
     SugarTestAccountUtilities::removeAllCreatedAccounts();
     SugarTestContactUtilities::removeCreatedContactsEmailAddresses();
     SugarTestContactUtilities::removeAllCreatedContacts();
     SugarTestHelper::tearDown();
 }
開發者ID:delkyd,項目名稱:sugarcrm_dev,代碼行數:9,代碼來源:Bug58055Test.php

示例15: tearDown

 public function tearDown()
 {
     SugarTestUserUtilities::removeAllCreatedAnonymousUsers();
     SugarTestContactUtilities::removeAllCreatedContacts();
     SugarTestAccountUtilities::removeAllCreatedAccounts();
     SugarTestTrackerUtility::removeAllTrackerEntries();
     unset($GLOBALS['current_user']);
     unset($GLOBALS['app_strings']);
 }
開發者ID:butschster,項目名稱:sugarcrm_dev,代碼行數:9,代碼來源:Bug40019Test.php


注:本文中的SugarTestContactUtilities類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。