File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
dev/tests/integration/testsuite/Magento/Newsletter/Model/Plugin Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -244,7 +244,7 @@ public function testCustomerWithTwoNewsLetterSubscriptions()
244
244
* @return void
245
245
* @throws \Magento\Framework\Exception\LocalizedException
246
246
*/
247
- public function testCreateAccountWithNewsLetterSubscription () : void
247
+ public function testCreateAccountWithNewsLetterSubscription (): void
248
248
{
249
249
$ objectManager = Bootstrap::getObjectManager ();
250
250
/** @var \Magento\Customer\Api\Data\CustomerInterfaceFactory $customerFactory */
@@ -259,6 +259,7 @@ public function testCreateAccountWithNewsLetterSubscription() :void
259
259
$ this ->accountManagement ->createAccount ($ customerDataObject , '123123qW ' );
260
260
$ message = $ this ->transportBuilderMock ->getSentMessage ();
261
261
262
+ $ this ->assertNotNull ($ message );
262
263
$ this ->assertEquals ('Welcome to Main Website Store ' , $ message ->getSubject ());
263
264
$ this ->assertStringContainsString (
264
265
'John ' ,
@@ -289,6 +290,7 @@ public function testCreateAccountWithNewsLetterSubscription() :void
289
290
290
291
$ message = $ this ->transportBuilderMock ->getSentMessage ();
291
292
293
+ $ this ->assertNotNull ($ message );
292
294
$ this ->assertStringContainsString (
293
295
$ subscriber ->getConfirmationLink (),
294
296
$ message ->getBody ()->getParts ()[0 ]->getRawContent ()
You can’t perform that action at this time.
0 commit comments