@@ -1079,9 +1079,7 @@ protected function prepareInitiatePasswordReset($email, $templateIdentifier, $se
10791079 {
10801080 $ websiteId = 1 ;
10811081 $ addressId = 5 ;
1082-
10831082 $ datetime = $ this ->prepareDateTimeFactory ();
1084-
10851083 $ customerData = ['key ' => 'value ' ];
10861084 $ customerName = 'Customer Name ' ;
10871085
@@ -1091,7 +1089,6 @@ protected function prepareInitiatePasswordReset($email, $templateIdentifier, $se
10911089 $ this ->store ->expects ($ this ->any ())
10921090 ->method ('getId ' )
10931091 ->willReturn ($ storeId );
1094-
10951092 $ this ->storeManager ->expects ($ this ->any ())
10961093 ->method ('getStore ' )
10971094 ->willReturn ($ this ->store );
@@ -1121,7 +1118,6 @@ protected function prepareInitiatePasswordReset($email, $templateIdentifier, $se
11211118 $ customer ->expects ($ this ->any ())
11221119 ->method ('getAddresses ' )
11231120 ->willReturn ([$ address ]);
1124-
11251121 $ this ->customerRepository ->expects ($ this ->once ())
11261122 ->method ('get ' )
11271123 ->willReturn ($ customer );
@@ -1132,7 +1128,6 @@ protected function prepareInitiatePasswordReset($email, $templateIdentifier, $se
11321128 $ addressModel ->expects ($ this ->once ())
11331129 ->method ('setShouldIgnoreValidation ' )
11341130 ->with (true );
1135-
11361131 $ this ->customerRepository ->expects ($ this ->once ())
11371132 ->method ('get ' )
11381133 ->with ($ email , $ websiteId )
@@ -1141,16 +1136,13 @@ protected function prepareInitiatePasswordReset($email, $templateIdentifier, $se
11411136 ->method ('save ' )
11421137 ->with ($ customer )
11431138 ->willReturnSelf ();
1144-
11451139 $ this ->random ->expects ($ this ->once ())
11461140 ->method ('getUniqueHash ' )
11471141 ->willReturn ($ hash );
1148-
11491142 $ this ->customerViewHelper ->expects ($ this ->any ())
11501143 ->method ('getCustomerName ' )
11511144 ->with ($ customer )
11521145 ->willReturn ($ customerName );
1153-
11541146 $ this ->customerSecure ->expects ($ this ->any ())
11551147 ->method ('setRpToken ' )
11561148 ->with ($ hash )
@@ -1167,12 +1159,10 @@ protected function prepareInitiatePasswordReset($email, $templateIdentifier, $se
11671159 ->method ('setData ' )
11681160 ->with ('name ' , $ customerName )
11691161 ->willReturnSelf ();
1170-
11711162 $ this ->customerRegistry ->expects ($ this ->any ())
11721163 ->method ('retrieveSecureData ' )
11731164 ->with ($ customerId )
11741165 ->willReturn ($ this ->customerSecure );
1175-
11761166 $ this ->dataObjectProcessor ->expects ($ this ->any ())
11771167 ->method ('buildOutputDataArray ' )
11781168 ->with ($ customer , \Magento \Customer \Api \Data \CustomerInterface::class)
0 commit comments