Links are not re-hashed when re-rendering the same newsletter

This commit is contained in:
Amine Ben hammou
2017-08-07 14:23:41 +00:00
parent 441aa14bcb
commit a587b0a966
6 changed files with 85 additions and 17 deletions

View File

@@ -30,7 +30,7 @@ class LinksTest extends \MailPoetTest {
'html' => '<a href="http://example.com">Example Link</a>',
'text' => '<a href="http://example.com">Example Link</a>'
);
$result = Links::hashAndReplaceLinks($rendered_newsletter);
$result = Links::hashAndReplaceLinks($rendered_newsletter, 0, 0);
$processed_rendered_newsletter_body = $result[0];
$processed_and_hashed_links = $result[1];
expect($processed_rendered_newsletter_body['html'])
@@ -59,4 +59,4 @@ class LinksTest extends \MailPoetTest {
\ORM::raw_execute('TRUNCATE ' . Newsletter::$_table);
\ORM::raw_execute('TRUNCATE ' . NewsletterLink::$_table);
}
}
}