Example #1
0
 /**
  * @group 41523
  */
 public function testDeletedLeadsOnCapmaingStatusPage()
 {
     // Create 2 leads
     $lead1 = $this->createLeadFromWebForm('User1');
     $lead2 = $this->createLeadFromWebForm('User2');
     // Delete one lead
     $lead1->mark_deleted($lead1->id);
     $this->assertEquals($this->campaign->getDeletedCampaignLogLeadsCount(), 1);
     // Test SubPanel output
     $subpanel = new SubPanelTiles($this->campaign, 'Campaigns');
     $html = $subpanel->display();
     preg_match('|<div id="list_subpanel_lead">.*?<table.*?</table>.*?</table>.*?</tr>(.*?)</table>|s', $html, $match);
     preg_match_all('|<tr|', $match[1], $match);
     $this->assertEquals(count($match[0]), 2);
 }
Example #2
0
 public function testgetDeletedCampaignLogLeadsCount()
 {
     $campaign = new Campaign();
     $result = $campaign->getDeletedCampaignLogLeadsCount();
     $this->assertEquals(0, $result);
 }