Skip to content

Commit 8642096

Browse files
akaashakaash
authored andcommitted
Static Test Fix
1 parent f421354 commit 8642096

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

dev/tests/integration/testsuite/Magento/Customer/Model/AccountManagement/CreateAccountTest.php

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,11 @@ public function testCreateAccountWithNewsLetterSubscription() :void
781781
->setLastname($lastName);
782782
$this->customerRepository->save($customer);
783783

784-
$this->assertAndSendEmailNotification($customer, $customerEmail, 'customer_create_account_email_template');
784+
$this->assertAndSendEmailNotification(
785+
$customer,
786+
$customerEmail,
787+
'customer_create_account_email_template'
788+
);
785789

786790
/** @var Subscriber $subscriber */
787791
$subscriber = $this->objectManager->create(Subscriber::class);
@@ -791,7 +795,11 @@ public function testCreateAccountWithNewsLetterSubscription() :void
791795
// Verify if the customer is subscribed to newsletter
792796
$this->assertTrue($subscriber->isSubscribed());
793797

794-
$this->assertAndSendEmailNotification($customer, $customerEmail, 'newsletter_subscription_confirm_email_template');
798+
$this->assertAndSendEmailNotification(
799+
$customer,
800+
$customerEmail,
801+
'newsletter_subscription_confirm_email_template'
802+
);
795803
}
796804

797805
/**
@@ -807,7 +815,12 @@ private function assertAndSendEmailNotification($customer, $customerEmail, $temp
807815
/** @var TransportBuilder $transportBuilder */
808816
$transportBuilder = $this->objectManager->get(TransportBuilder::class);
809817
$transport = $transportBuilder->setTemplateIdentifier($templateIdentifier)
810-
->setTemplateOptions(['area' => Area::AREA_FRONTEND, 'store' => \Magento\Store\Model\Store::DEFAULT_STORE_ID])
818+
->setTemplateOptions(
819+
[
820+
'area' => Area::AREA_FRONTEND,
821+
'store' => \Magento\Store\Model\Store::DEFAULT_STORE_ID
822+
]
823+
)
811824
->setTemplateVars(['customer' => $customer])
812825
->addTo($customerEmail)
813826
->getTransport();

0 commit comments

Comments
 (0)