Skip to content

Commit 6d79015

Browse files
akaashakaash
authored andcommitted
ACQE-4774 | PR Feedback
1 parent 222cb21 commit 6d79015

File tree

1 file changed

+3
-1
lines changed
  • dev/tests/integration/testsuite/Magento/Newsletter/Model/Plugin

1 file changed

+3
-1
lines changed

dev/tests/integration/testsuite/Magento/Newsletter/Model/Plugin/PluginTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)