Ejemplo n.º 1
0
 /**
  * @depends testProcessDueAutoresponderItemThrowsExceptionWhenNoContactIsAvailable
  * @expectedException NotSupportedException
  * @expectedExceptionMessage Provided content contains few invalid merge tags
  */
 public function testProcessDueAutoresponderItemThrowsExceptionWhenContentHasInvalidMergeTags()
 {
     $contact = ContactTestHelper::createContactByNameForOwner('contact 01', $this->user);
     $marketingList = MarketingListTestHelper::fillMarketingListByName('marketingList 01');
     $autoresponder = AutoresponderTestHelper::createAutoresponder('autoresponder 01', 'subject 01', '[[TEXT^CONTENT]]', '[[HTML^CONTENT]]', 1, Autoresponder::OPERATION_SUBSCRIBE, $marketingList, false);
     $processed = AutoresponderItem::NOT_PROCESSED;
     $processDateTime = DateTimeUtil::convertTimestampToDbFormatDateTime(time());
     $autoresponderItem = AutoresponderItemTestHelper::createAutoresponderItem($processed, $processDateTime, $autoresponder, $contact);
     AutoresponderItemsUtil::processDueAutoresponderItem($autoresponderItem);
 }