File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed
app/code/Magento/Customer Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -340,7 +340,7 @@ public function passwordReminder(CustomerInterface $customer)
340
340
*/
341
341
public function passwordResetConfirmation (CustomerInterface $ customer )
342
342
{
343
- $ storeId = $ this -> storeManager -> getStore ()-> getId ();
343
+ $ storeId = $ customer -> getStoreId ();
344
344
if (!$ storeId ) {
345
345
$ storeId = $ this ->getWebsiteStoreId ($ customer );
346
346
}
Original file line number Diff line number Diff line change @@ -521,7 +521,7 @@ public function testPasswordResetConfirmation()
521
521
522
522
/** @var CustomerInterface|\PHPUnit_Framework_MockObject_MockObject $customer */
523
523
$ customer = $ this ->createMock (CustomerInterface::class);
524
- $ customer ->expects ($ this ->any ())
524
+ $ customer ->expects ($ this ->once ())
525
525
->method ('getStoreId ' )
526
526
->willReturn ($ customerStoreId );
527
527
$ customer ->expects ($ this ->any ())
@@ -539,11 +539,6 @@ public function testPasswordResetConfirmation()
539
539
->method ('getStore ' )
540
540
->willReturn ($ this ->storeMock );
541
541
542
- $ this ->storeManagerMock ->expects ($ this ->at (1 ))
543
- ->method ('getStore ' )
544
- ->with ($ customerStoreId )
545
- ->willReturn ($ this ->storeMock );
546
-
547
542
$ this ->customerRegistryMock ->expects ($ this ->once ())
548
543
->method ('retrieveSecureData ' )
549
544
->with ($ customerId )
You can’t perform that action at this time.
0 commit comments