Simplify and unify getViewInBroserUrl calls

[MAILPOET-2430]
This commit is contained in:
Jan Jakeš
2020-02-04 16:02:26 +01:00
committed by Jack Kitterhing
parent e5fcf5819d
commit 923dc0d1dd
5 changed files with 5 additions and 6 deletions

View File

@ -873,7 +873,7 @@ class NewslettersTest extends \MailPoetTest {
'send' => function ($newsletter, $subscriber, $extraParams) {
$unsubscribeLink = $this->subscriptionUrlFactory->getUnsubscribeUrl(null);
$manageLink = $this->subscriptionUrlFactory->getManageUrl(null);
$viewInBrowserLink = Url::getViewInBrowserUrl($this->newsletter, false, false);
$viewInBrowserLink = Url::getViewInBrowserUrl($this->newsletter);
$mailerMetaInfo = new MetaInfo;
expect(is_array($newsletter))->true();