Skip to content

Commit cc74870

Browse files
author
Aleksandr Osadchyi
committed
MAGETWO-61725: [GITHUB] Improve address save flow to allow to use custom validators #7552
1 parent 706d918 commit cc74870

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/code/Magento/Customer/Test/Unit/Model/ResourceModel/AddressRepositoryTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,9 +211,9 @@ public function testSave()
211211
$this->address->expects($this->once())
212212
->method('getShouldIgnoreValidation')
213213
->willReturn(true);
214-
$this->directoryData->expects($this->once())
215-
->method('getCountriesWithOptionalZip')
216-
->willReturn([1]);
214+
$this->address->expects($this->once())
215+
->method('validate')
216+
->willReturn(true);
217217

218218
$this->repository->save($customerAddress);
219219
}

0 commit comments

Comments
 (0)