本文整理汇总了PHP中SugarTestUserUtilities类的典型用法代码示例。如果您正苦于以下问题:PHP SugarTestUserUtilities类的具体用法?PHP SugarTestUserUtilities怎么用?PHP SugarTestUserUtilities使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了SugarTestUserUtilities类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: tearDown
public function tearDown()
{
SugarTestUserUtilities::removeAllCreatedAnonymousUsers();
unset($GLOBALS['current_user']);
$sql = "DELETE FROM accounts where id = '{$this->_account->id}'";
$GLOBALS['db']->query($sql);
}
开发者ID:delkyd,项目名称:sugarcrm_dev,代码行数:7,代码来源:Bug39756Test.php
示例2: tearDown
public function tearDown()
{
SugarTestUserUtilities::removeAllCreatedAnonymousUsers();
unset($GLOBALS['current_user']);
unset($_REQUEST['searchDateFrom']);
unset($_REQUEST['searchDateTo']);
}
开发者ID:nickpro,项目名称:sugarcrm_dev,代码行数:7,代码来源:Bug43343Test.php
示例3: tearDown
public function tearDown()
{
unset($GLOBALS['current_user']);
unset($GLOBALS['beanList']);
unset($GLOBALS['beanFiles']);
SugarTestUserUtilities::removeAllCreatedAnonymousUsers();
}
开发者ID:jgera,项目名称:sugarcrm_dev,代码行数:7,代码来源:vCardTest.php
示例4: tearDown
public function tearDown()
{
SugarTestUserUtilities::removeAllCreatedAnonymousUsers();
unset($this->mbvardef);
unset($this->smarty);
unset($GLOBALS['current_user']);
}
开发者ID:delkyd,项目名称:sugarcrm_dev,代码行数:7,代码来源:Bug47406Test.php
示例5: tearDown
public function tearDown()
{
SugarTestAccountUtilities::removeAllCreatedAccounts();
SugarTestContactUtilities::removeAllCreatedContacts();
SugarTestUserUtilities::removeAllCreatedAnonymousUsers();
SugarTestHelper::tearDown();
}
开发者ID:delkyd,项目名称:sugarcrm_dev,代码行数:7,代码来源:Bug51679Test.php
示例6: setUp
public function setUp()
{
$GLOBALS['current_user'] = SugarTestUserUtilities::createAnonymousUser();
$this->account = SugarTestAccountUtilities::createAccount();
$this->account->name = "SDizzle Inc";
$this->account->save();
}
开发者ID:jgera,项目名称:sugarcrm_dev,代码行数:7,代码来源:vCardBug40629Test.php
示例7: setUp
public function setUp()
{
$GLOBALS['current_user'] = SugarTestUserUtilities::createAnonymousUser();
$this->user = $GLOBALS['current_user'];
$this->user->setPreference('default_decimal_seperator', '.');
$this->loc = new Localization();
}
开发者ID:jgera,项目名称:sugarcrm_dev,代码行数:7,代码来源:Bug50887Test.php
示例8: tearDown
public function tearDown()
{
SugarTestUserUtilities::removeAllCreatedAnonymousUsers();
unset($this->normalUser);
unset($this->groupUser);
unset($this->portalUser);
}
开发者ID:jgera,项目名称:sugarcrm_dev,代码行数:7,代码来源:Bug49627Test.php
示例9: 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
示例10: tearDown
public function tearDown()
{
SugarTestUserUtilities::removeAllCreatedAnonymousUsers();
unset($GLOBALS['action']);
unset($GLOBALS['module']);
unset($_REQUEST['module']);
}
开发者ID:jgera,项目名称:sugarcrm_dev,代码行数:7,代码来源:Bug46473Test.php
示例11: tearDown
public function tearDown()
{
// Delete created campaings
SugarTestCampaignUtilities::removeAllCreatedCampaigns();
// Delete users
SugarTestUserUtilities::removeAllCreatedAnonymousUsers();
}
开发者ID:jgera,项目名称:sugarcrm_dev,代码行数:7,代码来源:Bug41523Test.php
示例12: tearDown
public function tearDown()
{
unset($_REQUEST['dropdown_name']);
unset($_SESSION['authenticated_user_language']);
SugarTestUserUtilities::removeAllCreatedAnonymousUsers();
SugarTestHelper::tearDown();
}
开发者ID:delkyd,项目名称:sugarcrm_dev,代码行数:7,代码来源:Bug47010Test.php
示例13: tearDown
public function tearDown()
{
SugarTestUserUtilities::removeAllCreatedAnonymousUsers();
unset($GLOBALS['current_user']);
SugarTestAccountUtilities::removeAllCreatedAccounts();
SugarTestHelper::tearDown();
}
开发者ID:delkyd,项目名称:sugarcrm_dev,代码行数:7,代码来源:Bug49281Test.php
示例14: testAcceptanceAfterDateUpdate
public function testAcceptanceAfterDateUpdate()
{
global $current_user;
global $db;
$meeting = SugarTestMeetingUtilities::createMeeting();
$user = SugarTestUserUtilities::createAnonymousUser();
SugarTestMeetingUtilities::addMeetingUserRelation($meeting->id, $current_user->id);
SugarTestMeetingUtilities::addMeetingUserRelation($meeting->id, $user->id);
// set this to 'accept' before handleSave and make sure it gets set to 'none' after handleSave
$meeting->set_accept_status($user, 'accept');
$meeting->save();
$_POST['record'] = $_REQUEST['record'] = $meeting->id;
$_POST['user_invitees'] = $current_user->id . ',' . $user->id;
$_POST['module'] = 'Meetings';
$_POST['action'] = 'Save';
$_POST['assigned_user_id'] = $current_user->id;
$_POST['send_invites'] = $_REQUEST['send_invites'] = 1;
$_POST['date_start'] = $GLOBALS['timedate']->getNow()->asDb();
$_POST['date_end'] = $GLOBALS['timedate']->getNow()->modify("+900 seconds")->asDb();
$formBase = new MeetingFormBase();
$formBase->handleSave('', false, false);
$sql = "SELECT accept_status FROM meetings_users WHERE meeting_id='{$meeting->id}' AND user_id='{$user->id}'";
$result = $db->query($sql);
if ($row = $db->fetchByAssoc($result)) {
$this->assertEquals('none', $row['accept_status'], 'Should be none after date changed and invite sent.');
}
}
开发者ID:delkyd,项目名称:sugarcrm_dev,代码行数:27,代码来源:Bug58011Test.php
示例15: setUp
public function setUp()
{
global $current_user;
$this->_soapURL = $GLOBALS['sugar_config']['site_url'] . '/soap.php';
//Clean up any possible contacts not deleted
$GLOBALS['db']->query("DELETE FROM contacts WHERE first_name = 'NoBlankFieldUpdate' AND last_name = 'OnFirstSyncTest'");
$current_user = SugarTestUserUtilities::createAnonymousUser();
$contact = SugarTestContactUtilities::createContact();
$contact->first_name = 'NoBlankFieldUpdate';
$contact->last_name = 'OnFirstSyncTest';
$contact->phone_mobile = '867-5309';
$contact->email1 = '[email protected]';
$contact->title = 'Jenny - I Got Your Number';
$contact->disable_custom_fields = true;
$contact->save();
$this->c = $contact;
$GLOBALS['db']->query("DELETE FROM contacts WHERE first_name = 'Collin' AND last_name = 'Lee'");
//Manually create a contact entry
$contact2 = new Contact();
$contact2->title = 'Jenny - I Got Your Number';
$contact2->first_name = 'Collin';
$contact2->last_name = 'Lee';
$contact2->phone_mobile = '867-5309';
$contact2->disable_custom_fields = true;
$contact2->email1 = '';
$contact2->email2 = '';
$contact2->save();
$this->c2 = $contact2;
//DELETE contact_users entries that may have remained
$GLOBALS['db']->query("DELETE FROM contacts_users WHERE user_id = '{$current_user->id}'");
parent::setUp();
$GLOBALS['db']->commit();
}
开发者ID:jgera,项目名称:sugarcrm_dev,代码行数:33,代码来源:NoBlankFieldUpdateOnFirstSyncTest.php
示例16: tearDown
public function tearDown()
{
SugarTestUserUtilities::removeAllCreatedAnonymousUsers();
unset($GLOBALS['current_user']);
$GLOBALS['db']->query("DELETE FROM schedulers WHERE id = '" . $this->testScheduler->id . "'");
$GLOBALS['db']->query("DELETE FROM schedulers_times WHERE scheduler_id = '" . $this->testScheduler->id . "'");
}
开发者ID:nickpro,项目名称:sugarcrm_dev,代码行数:7,代码来源:Bug44125Test.php
示例17: setup
public function setup()
{
global $current_user;
$current_user = SugarTestUserUtilities::createAnonymousUser();
//for the purpose of this test, we need to create a campaign and relate it to a campaign tracker object
//create campaign
$c = new Campaign();
$c->name = 'CT test ' . time();
$c->campaign_type = 'Email';
$c->status = 'Active';
$timeDate = new TimeDate();
$c->end_date = $timeDate->to_display_date(date('Y') + 1 . '-01-01');
$c->assigned_id = $current_user->id;
$c->team_id = '1';
$c->team_set_id = '1';
$c->save();
$this->campaign = $c;
//create campaign tracker
$ct = new CampaignTracker();
$ct->tracker_name = 'CampaignTrackerTest' . time();
$ct->tracker_url = 'sugarcrm.com';
$ct->campaign_id = $this->campaign->id;
$ct->save();
$this->campaign_tracker = $ct;
}
开发者ID:jgera,项目名称:sugarcrm_dev,代码行数:25,代码来源:CampaignTrackersTest.php
示例18: tearDown
public function tearDown()
{
global $sugar_config, $sugar_version, $mod_strings;
if (file_exists($this->loc->invalidNameFormatUpgradeFilename)) {
unlink($this->loc->invalidNameFormatUpgradeFilename);
}
if (file_exists($this->loc->invalidNameFormatUpgradeFilename . '.backup')) {
rename($this->loc->invalidNameFormatUpgradeFilename . '.backup', $this->loc->invalidNameFormatUpgradeFilename);
}
unset($this->loc);
SugarTestUserUtilities::removeAllCreatedAnonymousUsers();
unset($this->user);
unset($GLOBALS['current_user']);
$sugar_config = $this->backupConfig;
if (!rebuildConfigFile($sugar_config, $sugar_version)) {
logThis('*** ERROR: could not write config.php!');
$errors[] = $mod_strings['ERR_UW_CONFIG_WRITE'];
}
unset($this->backupSystemLocaleNameFormat);
unset($sugar_config);
unset($sugar_version);
unset($mod_strings);
unset($app_strings);
unset($app_list_strings);
unset($locale);
unset($_REQUEST);
}
开发者ID:thsonvt,项目名称:sugarcrm_dev,代码行数:27,代码来源:Bug41058Test.php
示例19: tearDown
public function tearDown()
{
unset($_SESSION[$GLOBALS['current_user']->user_name . '_PREFERENCES']);
unset($GLOBALS['current_user']);
unset($_SESSION[$this->_user->user_name . '_PREFERENCES']);
SugarTestUserUtilities::removeAllCreatedAnonymousUsers();
}
开发者ID:netconstructor,项目名称:sugarcrm_dev,代码行数:7,代码来源:UserPreferenceTest.php
示例20: tearDown
public function tearDown()
{
$sql = "DELETE FROM MEETINGS WHERE id = '{$this->_meetingId}'";
$GLOBALS['db']->query($sql);
SugarTestUserUtilities::removeAllCreatedAnonymousUsers();
unset($GLOBALS['current_user']);
}
开发者ID:nickpro,项目名称:sugarcrm_dev,代码行数:7,代码来源:Bug39757Test.php
注:本文中的SugarTestUserUtilities类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论