Skip to content

Commit 4810755

Browse files
[2.3-develop] Forwardport of #12767
1 parent c3e1d93 commit 4810755

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

app/code/Magento/Eav/Model/Entity/AbstractEntity.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ abstract class AbstractEntity extends AbstractResource implements EntityInterfac
6666
*
6767
* @var array
6868
*/
69-
protected $attributesByScope = [];
69+
private $attributesByScope = [];
7070

7171
/**
7272
* Two-dimensional array by table name and attribute name

app/code/Magento/Eav/Test/Unit/Model/Entity/AttributeLoaderTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ public function testLoadAllAttributes()
7878
$attributeMock->expects($this->once())->method('setIsGlobal')->with(1)->willReturnSelf();
7979
$attributeMock->expects($this->once())->method('setEntityType')->with($this->entityTypeMock)->willReturnSelf();
8080
$attributeMock->expects($this->once())->method('setEntityTypeId')->with($entityTypeId)->willReturnSelf();
81-
$this->entityMock->expects($this->once())->method('addAttributeByScope')->willReturnSelf();
8281
$this->attributeLoader->loadAllAttributes($this->entityMock, $dataObject);
8382
}
8483

@@ -102,7 +101,6 @@ public function testLoadAllAttributesAttributeCodesPresentInDefaultAttributes()
102101
->method('getEntityAttributes')->willReturn($attributeCodes);
103102
$this->entityMock->expects($this->once())->method('getDefaultAttributes')->willReturn($defaultAttributes);
104103
$this->entityMock->expects($this->once())->method('unsetAttributes')->willReturnSelf();
105-
$this->entityMock->expects($this->atLeastOnce())->method('addAttributeByScope')->willReturnSelf();
106104
$this->objectManagerMock->expects($this->never())->method('create');
107105
$this->attributeLoader->loadAllAttributes($this->entityMock, $dataObject);
108106
}

0 commit comments

Comments
 (0)