@@ -88,15 +88,15 @@ public function testUnsubscribeSubscribe(): void
8888 $ this ->assertSame ($ subscriber , $ subscriber ->loadByCustomerId (1 ));
8989 $ this ->assertEquals ($ subscriber , $ subscriber ->unsubscribe ());
9090 $ this ->assertContains (
91- '<p> You have been unsubscribed from the newsletter.</p> ' ,
91+ 'You have been unsubscribed from the newsletter. ' ,
9292 $ this ->transportBuilder ->getSentMessage ()->getRawMessage ()
9393 );
9494 $ this ->assertEquals (Subscriber::STATUS_UNSUBSCRIBED , $ subscriber ->getSubscriberStatus ());
9595 // Subscribe and verify
9696 $ this ->assertEquals (Subscriber::STATUS_SUBSCRIBED , $ subscriber ->subscribe ('customer@example.com ' ));
9797 $ this ->assertEquals (Subscriber::STATUS_SUBSCRIBED , $ subscriber ->getSubscriberStatus ());
9898 $ this ->assertContains (
99- '<p> You have been successfully subscribed to our newsletter.</p> ' ,
99+ 'You have been successfully subscribed to our newsletter. ' ,
100100 $ this ->transportBuilder ->getSentMessage ()->getRawMessage ()
101101 );
102102 }
@@ -115,14 +115,14 @@ public function testUnsubscribeSubscribeByCustomerId(): void
115115 $ this ->assertSame ($ subscriber , $ subscriber ->unsubscribeCustomerById (1 ));
116116 $ this ->assertEquals (Subscriber::STATUS_UNSUBSCRIBED , $ subscriber ->getSubscriberStatus ());
117117 $ this ->assertContains (
118- '<p> You have been unsubscribed from the newsletter.</p> ' ,
118+ 'You have been unsubscribed from the newsletter. ' ,
119119 $ this ->transportBuilder ->getSentMessage ()->getRawMessage ()
120120 );
121121 // Subscribe and verify
122122 $ this ->assertSame ($ subscriber , $ subscriber ->subscribeCustomerById (1 ));
123123 $ this ->assertEquals (Subscriber::STATUS_SUBSCRIBED , $ subscriber ->getSubscriberStatus ());
124124 $ this ->assertContains (
125- '<p> You have been successfully subscribed to our newsletter.</p> ' ,
125+ 'You have been successfully subscribed to our newsletter. ' ,
126126 $ this ->transportBuilder ->getSentMessage ()->getRawMessage ()
127127 );
128128 }
@@ -142,7 +142,7 @@ public function testConfirm(): void
142142 $ subscriber ->loadByEmail ($ customerEmail );
143143 $ subscriber ->confirm ($ subscriber ->getSubscriberConfirmCode ());
144144 $ this ->assertContains (
145- '<p> You have been successfully subscribed to our newsletter.</p> ' ,
145+ 'You have been successfully subscribed to our newsletter. ' ,
146146 $ this ->transportBuilder ->getSentMessage ()->getRawMessage ()
147147 );
148148 }
0 commit comments