Skip to content

Commit 38886a4

Browse files
committed
AC1536: Fixed code review changes
1 parent 04d8f12 commit 38886a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/Customer/Test/Unit/Observer/UpgradeOrderCustomerEmailObserverTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ private function setOriginalCustomerToEventMock(MockObject $originalCustomer): v
171171

172172
private function setCustomerEmail(MockObject $originalCustomer, string $email): void
173173
{
174-
$originalCustomer->expects($this->any())
174+
$originalCustomer->expects($this->atLeastOnce())
175175
->method('getEmail')
176176
->willReturn($email);
177177
}
@@ -186,7 +186,7 @@ private function whenOrderRepositoryGetListIsCalled(MockObject $orderCollectionM
186186
->method('create')
187187
->willReturn($searchCriteriaMock);
188188

189-
$this->searchCriteriaBuilderMock->expects($this->any())
189+
$this->searchCriteriaBuilderMock->expects($this->atLeastOnce())
190190
->method('addFilter')
191191
->willReturn($this->searchCriteriaBuilderMock);
192192

0 commit comments

Comments
 (0)