@@ -781,7 +781,11 @@ public function testCreateAccountWithNewsLetterSubscription() :void
781
781
->setLastname ($ lastName );
782
782
$ this ->customerRepository ->save ($ customer );
783
783
784
- $ this ->assertAndSendEmailNotification ($ customer , $ customerEmail , 'customer_create_account_email_template ' );
784
+ $ this ->assertAndSendEmailNotification (
785
+ $ customer ,
786
+ $ customerEmail ,
787
+ 'customer_create_account_email_template '
788
+ );
785
789
786
790
/** @var Subscriber $subscriber */
787
791
$ subscriber = $ this ->objectManager ->create (Subscriber::class);
@@ -791,7 +795,11 @@ public function testCreateAccountWithNewsLetterSubscription() :void
791
795
// Verify if the customer is subscribed to newsletter
792
796
$ this ->assertTrue ($ subscriber ->isSubscribed ());
793
797
794
- $ this ->assertAndSendEmailNotification ($ customer , $ customerEmail , 'newsletter_subscription_confirm_email_template ' );
798
+ $ this ->assertAndSendEmailNotification (
799
+ $ customer ,
800
+ $ customerEmail ,
801
+ 'newsletter_subscription_confirm_email_template '
802
+ );
795
803
}
796
804
797
805
/**
@@ -807,7 +815,12 @@ private function assertAndSendEmailNotification($customer, $customerEmail, $temp
807
815
/** @var TransportBuilder $transportBuilder */
808
816
$ transportBuilder = $ this ->objectManager ->get (TransportBuilder::class);
809
817
$ 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
+ )
811
824
->setTemplateVars (['customer ' => $ customer ])
812
825
->addTo ($ customerEmail )
813
826
->getTransport ();
0 commit comments