public function setUp() { $this->markTestIncomplete('SugarTestCampaignUtilities does not exist'); $GLOBALS['current_user'] = SugarTestUserUtilities::createAnonymousUser(); $campaign = SugarTestCampaignUtilities::createCampaign(); $this->campaign_id = $campaign->id; }
public function setUp() { //create user $this->user = $GLOBALS['current_user'] = SugarTestUserUtilities::createAnonymousUser(); //create account $this->account = new Account(); $this->account->name = 'bug44522 account ' . date('Y-m-d-H-i-s'); $this->account->save(); //create campaign $this->campaign = SugarTestCampaignUtilities::createCampaign(); //create contact $this->contact = new Contact(); $this->lead = SugarTestLeadUtilities::createLead(); $this->lead->campaign_id = $this->campaign->id; $this->lead->save(); }
public function setUp() { $this->markTestIncomplete("This test breaks on stack66 - working with dev to fix"); global $focus; // Init session user settings $GLOBALS['current_user'] = SugarTestUserUtilities::createAnonymousUser(); $GLOBALS['current_user']->setPreference('max_tabs', 2); $this->campaign = SugarTestCampaignUtilities::createCampaign(); $this->db = $GLOBALS['db']; $focus = $this->campaign; // Setting for SubPanel $_SERVER['REQUEST_METHOD'] = 'GET'; $_REQUEST['module'] = 'Campaigns'; $_REQUEST['action'] = 'TrackDetailView'; $_REQUEST['record'] = $this->campaign->id; }