Skip to content

Commit 55888b1

Browse files
committed
MAGETWO-44744: Catalog API doesn't work correctly with store dependent data
1 parent 2ef5132 commit 55888b1

File tree

1 file changed

+16
-16
lines changed
  • app/code/Magento/ConfigurableProduct/Test/Unit/Model/ResourceModel/Product/Type/Configurable

1 file changed

+16
-16
lines changed

app/code/Magento/ConfigurableProduct/Test/Unit/Model/ResourceModel/Product/Type/Configurable/AttributeTest.php

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -62,25 +62,25 @@ public function testSaveLabel()
6262
$select->expects($this->at(1))->method('where')->willReturnSelf();
6363
$select->expects($this->at(2))->method('where')->willReturnSelf();
6464
$this->connection->expects($this->once())->method('fetchOne')->with(
65-
$select,
66-
[
67-
'product_super_attribute_id' => $attributeId,
68-
'store_id' => \Magento\Store\Model\Store::DEFAULT_STORE_ID,
69-
]
70-
)->willReturn(0);
65+
$select,
66+
[
67+
'product_super_attribute_id' => $attributeId,
68+
'store_id' => \Magento\Store\Model\Store::DEFAULT_STORE_ID,
69+
]
70+
)->willReturn(0);
7171

7272
$this->connection->expects($this->once())->method('insertOnDuplicate')->with(
73-
'catalog_product_super_attribute_label',
74-
[
75-
'product_super_attribute_id' => $attributeId,
76-
'use_default' => 0,
77-
'store_id' => 0,
78-
'value' => 'test',
79-
]
80-
);
73+
'catalog_product_super_attribute_label',
74+
[
75+
'product_super_attribute_id' => $attributeId,
76+
'use_default' => 0,
77+
'store_id' => 0,
78+
'value' => 'test',
79+
]
80+
);
8181
$attributeMode = $this->getMockBuilder(AttributeModel::class)->setMethods(
82-
['getId', 'getUseDefault', 'getLabel']
83-
)->disableOriginalConstructor()->getMock();
82+
['getId', 'getUseDefault', 'getLabel']
83+
)->disableOriginalConstructor()->getMock();
8484
$attributeMode->expects($this->any())->method('getId')->willReturn($attributeId);
8585
$attributeMode->expects($this->any())->method('getUseDefault')->willReturn(0);
8686
$attributeMode->expects($this->any())->method('getLabel')->willReturn('test');

0 commit comments

Comments
 (0)