Skip to content

Commit 84ebb0f

Browse files
committed
MAGETWO-95935: Allow Validation of customer address attributes to include spaces
1 parent f4daa73 commit 84ebb0f

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

app/code/Magento/Customer/Test/Unit/Model/Metadata/Form/AbstractDataTest.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -226,12 +226,10 @@ public function testValidateInputRule($value, $label, $inputValidation, $expecte
226226
$validationRule->method('getValue')
227227
->willReturn($inputValidation);
228228

229-
$this->_attributeMock
230-
->method('getStoreLabel')
229+
$this->_attributeMock->method('getStoreLabel')
231230
->willReturn($label);
232231

233-
$this->_attributeMock
234-
->method('getValidationRules')
232+
$this->_attributeMock->method('getValidationRules')
235233
->willReturn([$validationRule]);
236234

237235
$this->assertEquals($expectedOutput, $this->_model->validateInputRule($value));

app/code/Magento/Eav/Test/Unit/Model/Entity/Attribute/Frontend/DefaultFrontendTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
use Magento\Framework\App\CacheInterface;
1616
use Magento\Eav\Model\Entity\Attribute\AbstractAttribute;
1717
use Magento\Eav\Model\Entity\Attribute\Source\AbstractSource;
18-
use PHPUnit_Framework_MockObject_MockObject as MockObject;
18+
use PHPUnit\Framework\MockObject\MockObject;
1919

2020
class DefaultFrontendTest extends \PHPUnit\Framework\TestCase
2121
{

0 commit comments

Comments
 (0)