コード例 #1
0
    /**
     * @see: 0010150: Jump Labels get converted
     * 
     * https://forge.tine20.org/mantisbt/view.php?id=10150
     */
    public function testHtmlJumpLabels()
    {
        $cachedMessage = $this->messageTestHelper('html_jump_labels.eml');
        $message = $this->_controller->getCompleteMessage($cachedMessage);
        $this->assertContains('<a href="#felamimail_inline_test" target="_blank">test</a>
<p>Hello,</p>
<p id="felamimail_inline_test">Text Content</p>', $message->body);
    }
コード例 #2
0
 /**
  * validate email invitation from mac
  */
 public function testEmailInvitationFromMac()
 {
     $cachedMessage = $this->messageTestHelper('mac_invitation.eml');
     $message = $this->_controller->getCompleteMessage($cachedMessage);
     $this->assertEquals(1, count($message->preparedParts));
     $preparediMIPPart = $message->preparedParts->getFirstRecord()->preparedData;
     $this->assertTrue($preparediMIPPart instanceof Calendar_Model_iMIP, 'is no iMIP');
     $this->assertEquals('*****@*****.**', $preparediMIPPart->originator);
 }
コード例 #3
0
 /**
  * testFacebookNotification
  * 
  * @see 0008016: links in facebook/twitter emails are removed
  */
 public function testFacebookNotification()
 {
     $cachedMessage = $this->messageTestHelper('facebook_notification.eml');
     $message = $this->_controller->getCompleteMessage($cachedMessage);
     $this->assertContains('http://www.facebook.com/n/?notifications&amp;id=295475095891&amp;' . 'mid=7a0ffadG5af33a8a9c98Ga61c449Gdd&amp;bcode=1.1362559617.Abl6w95TdWQc0VVS&amp;n_m=tine20%40metaways.de', $message->body);
 }