@@ -88,15 +88,15 @@ public function testUnsubscribeSubscribe(): void
88
88
$ this ->assertSame ($ subscriber , $ subscriber ->loadByCustomerId (1 ));
89
89
$ this ->assertEquals ($ subscriber , $ subscriber ->unsubscribe ());
90
90
$ this ->assertContains (
91
- '<p> You have been unsubscribed from the newsletter.</p> ' ,
91
+ 'You have been unsubscribed from the newsletter. ' ,
92
92
$ this ->transportBuilder ->getSentMessage ()->getRawMessage ()
93
93
);
94
94
$ this ->assertEquals (Subscriber::STATUS_UNSUBSCRIBED , $ subscriber ->getSubscriberStatus ());
95
95
// Subscribe and verify
96
96
$ this ->
assertEquals (Subscriber::
STATUS_SUBSCRIBED ,
$ subscriber->
subscribe (
'[email protected] ' ));
97
97
$ this ->assertEquals (Subscriber::STATUS_SUBSCRIBED , $ subscriber ->getSubscriberStatus ());
98
98
$ this ->assertContains (
99
- '<p> You have been successfully subscribed to our newsletter.</p> ' ,
99
+ 'You have been successfully subscribed to our newsletter. ' ,
100
100
$ this ->transportBuilder ->getSentMessage ()->getRawMessage ()
101
101
);
102
102
}
@@ -115,14 +115,14 @@ public function testUnsubscribeSubscribeByCustomerId(): void
115
115
$ this ->assertSame ($ subscriber , $ subscriber ->unsubscribeCustomerById (1 ));
116
116
$ this ->assertEquals (Subscriber::STATUS_UNSUBSCRIBED , $ subscriber ->getSubscriberStatus ());
117
117
$ this ->assertContains (
118
- '<p> You have been unsubscribed from the newsletter.</p> ' ,
118
+ 'You have been unsubscribed from the newsletter. ' ,
119
119
$ this ->transportBuilder ->getSentMessage ()->getRawMessage ()
120
120
);
121
121
// Subscribe and verify
122
122
$ this ->assertSame ($ subscriber , $ subscriber ->subscribeCustomerById (1 ));
123
123
$ this ->assertEquals (Subscriber::STATUS_SUBSCRIBED , $ subscriber ->getSubscriberStatus ());
124
124
$ this ->assertContains (
125
- '<p> You have been successfully subscribed to our newsletter.</p> ' ,
125
+ 'You have been successfully subscribed to our newsletter. ' ,
126
126
$ this ->transportBuilder ->getSentMessage ()->getRawMessage ()
127
127
);
128
128
}
@@ -142,7 +142,7 @@ public function testConfirm(): void
142
142
$ subscriber ->loadByEmail ($ customerEmail );
143
143
$ subscriber ->confirm ($ subscriber ->getSubscriberConfirmCode ());
144
144
$ this ->assertContains (
145
- '<p> You have been successfully subscribed to our newsletter.</p> ' ,
145
+ 'You have been successfully subscribed to our newsletter. ' ,
146
146
$ this ->transportBuilder ->getSentMessage ()->getRawMessage ()
147
147
);
148
148
}
0 commit comments