Skip to content

Commit 14e6936

Browse files
author
Igor Melnikov
committed
MAGETWO-64224: Remove usages of AttributeCache from customer module
- updating unit tests
1 parent e26f6ae commit 14e6936

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

app/code/Magento/Customer/Test/Unit/Model/Metadata/AttributeMetadataHydratorTest.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616
use Magento\Framework\Reflection\DataObjectProcessor;
1717
use Magento\Customer\Model\Metadata\AttributeMetadataHydrator;
1818

19-
/**
20-
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
21-
*/
2219
class AttributeMetadataHydratorTest extends \PHPUnit_Framework_TestCase
2320
{
2421
/**
@@ -149,17 +146,17 @@ public function testHydrate()
149146
->with(['data' => $optionTwoDataPartiallyConverted])
150147
->willReturn($optionFour);
151148

152-
$validationRule = new ValidationRule($validationRuleOneData);
149+
$validationRuleOne = new ValidationRule($validationRuleOneData);
153150
$this->validationRuleFactoryMock->expects($this->once())
154151
->method('create')
155152
->with(['data' => $validationRuleOneData])
156-
->willReturn($validationRule);
153+
->willReturn($validationRuleOne);
157154

158155
$attributeMetadataPartiallyConverted = [
159156
'attribute_code' => 'attribute_code',
160157
'frontend_input' => 'hidden',
161158
'options' => [$optionOne, $optionFour],
162-
'validation_rules' => [$validationRule]
159+
'validation_rules' => [$validationRuleOne]
163160
];
164161

165162
$this->attributeMetadataFactoryMock->expects($this->once())

0 commit comments

Comments
 (0)