@@ -1079,9 +1079,7 @@ protected function prepareInitiatePasswordReset($email, $templateIdentifier, $se
1079
1079
{
1080
1080
$ websiteId = 1 ;
1081
1081
$ addressId = 5 ;
1082
-
1083
1082
$ datetime = $ this ->prepareDateTimeFactory ();
1084
-
1085
1083
$ customerData = ['key ' => 'value ' ];
1086
1084
$ customerName = 'Customer Name ' ;
1087
1085
@@ -1091,7 +1089,6 @@ protected function prepareInitiatePasswordReset($email, $templateIdentifier, $se
1091
1089
$ this ->store ->expects ($ this ->any ())
1092
1090
->method ('getId ' )
1093
1091
->willReturn ($ storeId );
1094
-
1095
1092
$ this ->storeManager ->expects ($ this ->any ())
1096
1093
->method ('getStore ' )
1097
1094
->willReturn ($ this ->store );
@@ -1121,7 +1118,6 @@ protected function prepareInitiatePasswordReset($email, $templateIdentifier, $se
1121
1118
$ customer ->expects ($ this ->any ())
1122
1119
->method ('getAddresses ' )
1123
1120
->willReturn ([$ address ]);
1124
-
1125
1121
$ this ->customerRepository ->expects ($ this ->once ())
1126
1122
->method ('get ' )
1127
1123
->willReturn ($ customer );
@@ -1132,7 +1128,6 @@ protected function prepareInitiatePasswordReset($email, $templateIdentifier, $se
1132
1128
$ addressModel ->expects ($ this ->once ())
1133
1129
->method ('setShouldIgnoreValidation ' )
1134
1130
->with (true );
1135
-
1136
1131
$ this ->customerRepository ->expects ($ this ->once ())
1137
1132
->method ('get ' )
1138
1133
->with ($ email , $ websiteId )
@@ -1141,16 +1136,13 @@ protected function prepareInitiatePasswordReset($email, $templateIdentifier, $se
1141
1136
->method ('save ' )
1142
1137
->with ($ customer )
1143
1138
->willReturnSelf ();
1144
-
1145
1139
$ this ->random ->expects ($ this ->once ())
1146
1140
->method ('getUniqueHash ' )
1147
1141
->willReturn ($ hash );
1148
-
1149
1142
$ this ->customerViewHelper ->expects ($ this ->any ())
1150
1143
->method ('getCustomerName ' )
1151
1144
->with ($ customer )
1152
1145
->willReturn ($ customerName );
1153
-
1154
1146
$ this ->customerSecure ->expects ($ this ->any ())
1155
1147
->method ('setRpToken ' )
1156
1148
->with ($ hash )
@@ -1167,12 +1159,10 @@ protected function prepareInitiatePasswordReset($email, $templateIdentifier, $se
1167
1159
->method ('setData ' )
1168
1160
->with ('name ' , $ customerName )
1169
1161
->willReturnSelf ();
1170
-
1171
1162
$ this ->customerRegistry ->expects ($ this ->any ())
1172
1163
->method ('retrieveSecureData ' )
1173
1164
->with ($ customerId )
1174
1165
->willReturn ($ this ->customerSecure );
1175
-
1176
1166
$ this ->dataObjectProcessor ->expects ($ this ->any ())
1177
1167
->method ('buildOutputDataArray ' )
1178
1168
->with ($ customer , \Magento \Customer \Api \Data \CustomerInterface::class)
0 commit comments