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()
462462 ->willReturnOnConsecutiveCalls ($ attributeValue , $ attributeValue2 );
463463 $ this ->assertEquals (1 , count ($ this ->category ->getCustomAttributes ()));
464464 $ 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+ );
466469
467470 //Change the attribute value, should reflect in getCustomAttribute
468471 $ this ->category ->setData ($ customAttributeCode , $ newCustomAttributeValue );
Original file line number Diff line number Diff line change @@ -1299,13 +1299,19 @@ public function testGetCustomAttributes()
12991299 ->willReturnOnConsecutiveCalls ($ attributeValue , $ attributeValue2 );
13001300 $ this ->assertEquals (1 , count ($ this ->model ->getCustomAttributes ()));
13011301 $ 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+ );
13031306
13041307 //Change the attribute value, should reflect in getCustomAttribute
13051308 $ this ->model ->setData ($ customAttributeCode , $ newCustomAttributeValue );
13061309 $ this ->assertEquals (1 , count ($ this ->model ->getCustomAttributes ()));
13071310 $ 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+ );
13091315 }
13101316
13111317 /**
You can’t perform that action at this time.
0 commit comments