diff --git a/mailpoet/tests/integration/Subscription/ManageSubscriptionFormRendererTest.php b/mailpoet/tests/integration/Subscription/ManageSubscriptionFormRendererTest.php index e4ed3f98e9..b1e01d511b 100644 --- a/mailpoet/tests/integration/Subscription/ManageSubscriptionFormRendererTest.php +++ b/mailpoet/tests/integration/Subscription/ManageSubscriptionFormRendererTest.php @@ -20,12 +20,12 @@ class ManageSubscriptionFormRendererTest extends \MailPoetTest { public function testItGeneratesForm() { $subscriber = $this->getSubscriber($this->getSegment()); - $form = $this->formRenderer->renderForm(Subscriber::findOne($subscriber->getId())); + $form = $this->formRenderer->renderForm(Subscriber::findOne($subscriber->getId())->withSubscriptions()); expect($form)->regExp('/
/'); expect($form)->stringContainsString(''); expect($form)->regExp('//'); expect($form)->regExp('//'); - expect($form)->regExp('/ Test segment/'); + expect($form)->regExp('/ Test segment/'); expect($form)->stringContainsString('Need to change your email address? Unsubscribe using the form below, then simply sign up again.'); } @@ -43,7 +43,7 @@ class ManageSubscriptionFormRendererTest extends \MailPoetTest { ]; return $fields; }); - $form = $this->formRenderer->renderForm(Subscriber::findOne($subscriber->getId())); + $form = $this->formRenderer->renderForm(Subscriber::findOne($subscriber->getId())->withSubscriptions()); expect($form)->regExp('//'); }