/** * @test */ public function makeMailtoLinksCreatesCorrectJumpUrlIfConfigured() { $testData = $this->initializeJumpUrlTestEnvironment(); $testMail = '*****@*****.**'; $testMailto = 'mailto:' . $testMail; $expectedHash = 'bd82328dc40755f5d0411e2e16e7c0cbf33b51b7'; $expectedLink = htmlspecialchars($testData['absRefPrefix'] . $testData['mainScript'] . '?id=' . $testData['pageId'] . '&type=' . $testData['pageType'] . '&jumpurl=' . rawurlencode($testMailto) . '&juHash=' . $expectedHash); $result = $this->subject->mailto_makelinks('teststring ' . $testMailto . ' anotherstring', array()); $this->assertEquals('teststring <a href="' . $expectedLink . '">' . $testMail . '</a> anotherstring', $result); }