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()
244244 * @return void
245245 * @throws \Magento\Framework\Exception\LocalizedException
246246 */
247- public function testCreateAccountWithNewsLetterSubscription () : void
247+ public function testCreateAccountWithNewsLetterSubscription (): void
248248 {
249249 $ objectManager = Bootstrap::getObjectManager ();
250250 /** @var \Magento\Customer\Api\Data\CustomerInterfaceFactory $customerFactory */
@@ -259,6 +259,7 @@ public function testCreateAccountWithNewsLetterSubscription() :void
259259 $ this ->accountManagement ->createAccount ($ customerDataObject , '123123qW ' );
260260 $ message = $ this ->transportBuilderMock ->getSentMessage ();
261261
262+ $ this ->assertNotNull ($ message );
262263 $ this ->assertEquals ('Welcome to Main Website Store ' , $ message ->getSubject ());
263264 $ this ->assertStringContainsString (
264265 'John ' ,
@@ -289,6 +290,7 @@ public function testCreateAccountWithNewsLetterSubscription() :void
289290
290291 $ message = $ this ->transportBuilderMock ->getSentMessage ();
291292
293+ $ this ->assertNotNull ($ message );
292294 $ this ->assertStringContainsString (
293295 $ subscriber ->getConfirmationLink (),
294296 $ message ->getBody ()->getParts ()[0 ]->getRawContent ()
You can’t perform that action at this time.
0 commit comments