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

Commit 39098d8

Browse files
author
awarche
committed
magento/magento2#12699: fixed attribute loading for different entities in AbstractEntity
1 parent b1cc3ea commit 39098d8

File tree

4 files changed

+101
-49
lines changed

4 files changed

+101
-49
lines changed

app/code/Magento/Catalog/Test/Unit/Model/ResourceModel/AbstractTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,13 @@ public function testWalkAttributes()
4444

4545
$code = 'test_attr';
4646
$set = 10;
47+
$storeId = 100;
4748

4849
$object = $this->createPartialMock(\Magento\Catalog\Model\Product::class, ['__wakeup']);
4950

5051
$object->setData('test_attr', 'test_attr');
5152
$object->setData('attribute_set_id', $set);
53+
$object->setData('store_id', $storeId);
5254

5355
$entityType = new \Magento\Framework\DataObject();
5456
$entityType->setEntityTypeCode('test');

0 commit comments

Comments
 (0)