Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit 0eb0482

Browse files
author
Stanislav Idolov
committed
1 parent e650796 commit 0eb0482

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

app/code/Magento/Catalog/Test/Unit/Model/CategoryTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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);

app/code/Magento/Catalog/Test/Unit/Model/ProductTest.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff 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
/**

0 commit comments

Comments
 (0)