Skip to content

Commit 08a044e

Browse files
committed
ACP2E-751: Unable to save customer account after editing "Street address" attribute
Auto tests fixed
1 parent 6dfaf8c commit 08a044e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/code/Magento/Customer/Test/Unit/Model/Address/DataProviderTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,10 +343,11 @@ protected function getAttributeMock(array $options = []): array
343343
$attributeCode .= $options[self::ATTRIBUTE_CODE]['specific_code_prefix'];
344344
}
345345

346-
$attributeMock->expects($this->atLeast(2))
346+
$attributeMock->expects($this->exactly(3))
347347
->method('getAttributeCode')
348348
->willReturn($attributeCode);
349349

350+
350351
$attributeBooleanMock = $this->getMockBuilder(AbstractAttribute::class)
351352
->onlyMethods(
352353
[
@@ -367,7 +368,7 @@ protected function getAttributeMock(array $options = []): array
367368
$booleanAttributeCode .= $options['test-code-boolean']['specific_code_prefix'];
368369
}
369370

370-
$attributeBooleanMock->expects($this->atleast(2))
371+
$attributeBooleanMock->expects($this->exactly(3))
371372
->method('getAttributeCode')
372373
->willReturn($booleanAttributeCode);
373374

0 commit comments

Comments
 (0)