@@ -121,12 +121,18 @@ public function testUnsubscribeSubscribe(): void
121
121
$ subscriber = $ this ->subscriberFactory ->create ();
122
122
$ this ->assertSame ($ subscriber , $ subscriber ->loadByCustomerId (1 ));
123
123
$ this ->assertEquals ($ subscriber , $ subscriber ->unsubscribe ());
124
- $ this ->assertStringContainsString ('You have been unsubscribed from the newsletter. ' , $ this ->getFilteredRawMessage ($ this ->transportBuilder ));
124
+ $ this ->assertStringContainsString (
125
+ 'You have been unsubscribed from the newsletter. ' ,
126
+ $ this ->getFilteredRawMessage ($ this ->transportBuilder )
127
+ );
125
128
$ this ->assertEquals (Subscriber::STATUS_UNSUBSCRIBED , $ subscriber ->getSubscriberStatus ());
126
129
// Subscribe and verify
127
130
$ this ->assertEquals (Subscriber::STATUS_SUBSCRIBED , $ subscriber ->subscribe ('customer@example.com ' ));
128
131
$ this ->assertEquals (Subscriber::STATUS_SUBSCRIBED , $ subscriber ->getSubscriberStatus ());
129
- $ this ->assertStringContainsString ('You have been successfully subscribed to our newsletter. ' , $ this ->getFilteredRawMessage ($ this ->transportBuilder ));
132
+ $ this ->assertStringContainsString (
133
+ 'You have been successfully subscribed to our newsletter. ' ,
134
+ $ this ->getFilteredRawMessage ($ this ->transportBuilder )
135
+ );
130
136
}
131
137
132
138
/**
@@ -151,11 +157,17 @@ public function testUnsubscribeSubscribeByCustomerId(): void
151
157
// Unsubscribe and verify
152
158
$ this ->assertSame ($ subscriber , $ subscriber ->unsubscribeCustomerById (1 ));
153
159
$ this ->assertEquals (Subscriber::STATUS_UNSUBSCRIBED , $ subscriber ->getSubscriberStatus ());
154
- $ this ->assertStringContainsString ('You have been unsubscribed from the newsletter. ' , $ this ->getFilteredRawMessage ($ this ->transportBuilder ));
160
+ $ this ->assertStringContainsString (
161
+ 'You have been unsubscribed from the newsletter. ' ,
162
+ $ this ->getFilteredRawMessage ($ this ->transportBuilder )
163
+ );
155
164
// Subscribe and verify
156
165
$ this ->assertSame ($ subscriber , $ subscriber ->subscribeCustomerById (1 ));
157
166
$ this ->assertEquals (Subscriber::STATUS_SUBSCRIBED , $ subscriber ->getSubscriberStatus ());
158
- $ this ->assertStringContainsString ('You have been successfully subscribed to our newsletter. ' , $ this ->getFilteredRawMessage ($ this ->transportBuilder ));
167
+ $ this ->assertStringContainsString (
168
+ 'You have been successfully subscribed to our newsletter. ' ,
169
+ $ this ->getFilteredRawMessage ($ this ->transportBuilder )
170
+ );
159
171
}
160
172
161
173
/**
@@ -172,7 +184,10 @@ public function testConfirm(): void
172
184
$ subscriber ->subscribe ($ customerEmail );
173
185
$ subscriber ->loadByEmail ($ customerEmail );
174
186
$ subscriber ->confirm ($ subscriber ->getSubscriberConfirmCode ());
175
- $ this ->assertStringContainsString ('You have been successfully subscribed to our newsletter. ' , $ this ->getFilteredRawMessage ($ this ->transportBuilder ));
187
+ $ this ->assertStringContainsString (
188
+ 'You have been successfully subscribed to our newsletter. ' ,
189
+ $ this ->getFilteredRawMessage ($ this ->transportBuilder )
190
+ );
176
191
}
177
192
178
193
/**
0 commit comments