This repository was archived by the owner on Apr 29, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed
app/code/Magento/Catalog/Test/Unit/Model Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -462,7 +462,10 @@ public function testGetCustomAttributes()
462
462
->willReturnOnConsecutiveCalls ($ attributeValue , $ attributeValue2 );
463
463
$ this ->assertEquals (1 , count ($ this ->category ->getCustomAttributes ()));
464
464
$ this ->assertNotNull ($ this ->category ->getCustomAttribute ($ customAttributeCode ));
465
- $ this ->assertEquals ($ initialCustomAttributeValue , $ this ->category ->getCustomAttribute ($ customAttributeCode )->getValue ());
465
+ $ this ->assertEquals (
466
+ $ initialCustomAttributeValue ,
467
+ $ this ->category ->getCustomAttribute ($ customAttributeCode )->getValue ()
468
+ );
466
469
467
470
//Change the attribute value, should reflect in getCustomAttribute
468
471
$ this ->category ->setData ($ customAttributeCode , $ newCustomAttributeValue );
Original file line number Diff line number Diff line change @@ -1299,13 +1299,19 @@ public function testGetCustomAttributes()
1299
1299
->willReturnOnConsecutiveCalls ($ attributeValue , $ attributeValue2 );
1300
1300
$ this ->assertEquals (1 , count ($ this ->model ->getCustomAttributes ()));
1301
1301
$ this ->assertNotNull ($ this ->model ->getCustomAttribute ($ customAttributeCode ));
1302
- $ this ->assertEquals ($ initialCustomAttributeValue , $ this ->model ->getCustomAttribute ($ customAttributeCode )->getValue ());
1302
+ $ this ->assertEquals (
1303
+ $ initialCustomAttributeValue ,
1304
+ $ this ->model ->getCustomAttribute ($ customAttributeCode )->getValue ()
1305
+ );
1303
1306
1304
1307
//Change the attribute value, should reflect in getCustomAttribute
1305
1308
$ this ->model ->setData ($ customAttributeCode , $ newCustomAttributeValue );
1306
1309
$ this ->assertEquals (1 , count ($ this ->model ->getCustomAttributes ()));
1307
1310
$ this ->assertNotNull ($ this ->model ->getCustomAttribute ($ customAttributeCode ));
1308
- $ this ->assertEquals ($ newCustomAttributeValue , $ this ->model ->getCustomAttribute ($ customAttributeCode )->getValue ());
1311
+ $ this ->assertEquals (
1312
+ $ newCustomAttributeValue ,
1313
+ $ this ->model ->getCustomAttribute ($ customAttributeCode )->getValue ()
1314
+ );
1309
1315
}
1310
1316
1311
1317
/**
You can’t perform that action at this time.
0 commit comments