Skip to content

Commit 59b4469

Browse files
committed
MC-39765: No such entity with addressId, occurs randomly on visitors browser. System Log Generated
1 parent c78afee commit 59b4469

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/code/Magento/Persistent/Test/Unit/Observer/EmulateCustomerObserverTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,14 +131,14 @@ public function testExecuteWhenSessionPersistAndCustomerNotLoggedIn()
131131
$customerMock
132132
->expects($this->once())
133133
->method('getDefaultShipping')
134-
->willReturn('shippingId');
134+
->willReturn(12345);
135135
$customerMock
136136
->expects($this->once())
137137
->method('getDefaultBilling')
138-
->willReturn('billingId');
138+
->willReturn(12346);
139139
$valueMap = [
140-
['shippingId', $defaultShippingAddressMock],
141-
['billingId', $defaultBillingAddressMock]
140+
[12345, $defaultShippingAddressMock],
141+
[12346, $defaultBillingAddressMock]
142142
];
143143
$this->addressRepositoryMock->expects($this->any())->method('getById')->willReturnMap($valueMap);
144144
$this->customerSessionMock

0 commit comments

Comments
 (0)