本文整理汇总了PHP中SugarTestContactUtilities类的典型用法代码示例。如果您正苦于以下问题:PHP SugarTestContactUtilities类的具体用法?PHP SugarTestContactUtilities怎么用?PHP SugarTestContactUtilities使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了SugarTestContactUtilities类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: createContact
/**
* Create contact function
*/
public function createContact($account_id, $account_name)
{
$contact = SugarTestContactUtilities::createContact();
$contact->account_id = $account_id;
$contact->account_name = $account_name;
$contact->save();
$GLOBALS['db']->commit();
return $contact;
}
开发者ID:delkyd,项目名称:sugarcrm_dev,代码行数:12,代码来源:Bug61159Test.php
示例17: tearDown
public function tearDown()
{
SugarTestHelper::tearDown();
SugarTestOpportunityUtilities::removeAllCreatedOpportunities();
SugarTestEmailUtilities::removeAllCreatedEmails();
SugarTestContactUtilities::removeAllCreatedContacts();
SugarTestAccountUtilities::removeAllCreatedAccounts();
$GLOBALS['app'] = $this->application;
}
开发者ID:thsonvt,项目名称:sugarcrm_dev,代码行数:9,代码来源:Bug58863Test.php
示例18: testDisplay
public function testDisplay()
{
$view = new ViewVcard();
$view->bean = SugarTestContactUtilities::createContact();
$view->module = 'Contacts';
$view->display();
SugarTestContactUtilities::removeAllCreatedContacts();
$this->expectOutputRegex('/BEGIN\\:VCARD/');
}
开发者ID:newLoki,项目名称:sugarcrm_dev,代码行数:9,代码来源:ViewVcardTest.php
示例19: setUp
public function setUp()
{
$this->_soapURL = $GLOBALS['sugar_config']['site_url'] . '/soap.php';
parent::setUp();
$this->contact = SugarTestContactUtilities::createContact();
$this->prospect = new Prospect();
$this->prospect->email1 = $this->contact->email1;
$this->prospect->save();
$GLOBALS['db']->commit();
}
开发者ID:delkyd,项目名称:sugarcrm_dev,代码行数:10,代码来源:Bug31003Test.php
示例20: tearDown
protected function tearDown()
{
SugarTestContactUtilities::removeAllCreatedContacts();
SugarTestContactUtilities::removeCreatedContactsEmailAddresses();
SugarTestContactUtilities::removeCreatedContactsUsersRelationships();
SugarTestMeetingUtilities::removeAllCreatedMeetings();
SugarTestMeetingUtilities::removeMeetingContacts();
SugarTestMeetingUtilities::removeMeetingUsers();
SugarTestHelper::tearDown();
}
开发者ID:delkyd,项目名称:sugarcrm_dev,代码行数:10,代码来源:Bug53516Test.php
注:本文中的SugarTestContactUtilities类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论