/** * @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); }
/** * 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); }
/** * 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&id=295475095891&' . 'mid=7a0ffadG5af33a8a9c98Ga61c449Gdd&bcode=1.1362559617.Abl6w95TdWQc0VVS&n_m=tine20%40metaways.de', $message->body); }