Links are not re-hashed when re-rendering the same newsletter
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user