File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
app/code/Magento/Customer/Test/Unit/Model/Metadata Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 16
16
use Magento \Framework \Reflection \DataObjectProcessor ;
17
17
use Magento \Customer \Model \Metadata \AttributeMetadataHydrator ;
18
18
19
- /**
20
- * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
21
- */
22
19
class AttributeMetadataHydratorTest extends \PHPUnit_Framework_TestCase
23
20
{
24
21
/**
@@ -149,17 +146,17 @@ public function testHydrate()
149
146
->with (['data ' => $ optionTwoDataPartiallyConverted ])
150
147
->willReturn ($ optionFour );
151
148
152
- $ validationRule = new ValidationRule ($ validationRuleOneData );
149
+ $ validationRuleOne = new ValidationRule ($ validationRuleOneData );
153
150
$ this ->validationRuleFactoryMock ->expects ($ this ->once ())
154
151
->method ('create ' )
155
152
->with (['data ' => $ validationRuleOneData ])
156
- ->willReturn ($ validationRule );
153
+ ->willReturn ($ validationRuleOne );
157
154
158
155
$ attributeMetadataPartiallyConverted = [
159
156
'attribute_code ' => 'attribute_code ' ,
160
157
'frontend_input ' => 'hidden ' ,
161
158
'options ' => [$ optionOne , $ optionFour ],
162
- 'validation_rules ' => [$ validationRule ]
159
+ 'validation_rules ' => [$ validationRuleOne ]
163
160
];
164
161
165
162
$ this ->attributeMetadataFactoryMock ->expects ($ this ->once ())
You can’t perform that action at this time.
0 commit comments