Skip to content

Commit 04901db

Browse files
author
Yu Tang
committed
MAGETWO-28254: ConfigurableProduct Integration API
- Fix integration and static test failures
1 parent 489258e commit 04901db

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

app/code/Magento/ConfigurableProduct/Test/Unit/Model/Product/Type/ConfigurableTest.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -597,10 +597,6 @@ public function testGetProductByAttributesReturnUsedProduct()
597597
->setMethods(['getId', 'getAttributeCode'])
598598
->disableOriginalConstructor()
599599
->getMock();
600-
$productResource = $this->getMockBuilder('\Magento\Catalog\Model\Resource\Product')
601-
->setMethods(['__wakeup', 'loadAllAttributes', 'getSortedAttributes'])
602-
->disableOriginalConstructor()
603-
->getMock();
604600
$productCollection = $this->getMockBuilder(
605601
'Magento\ConfigurableProduct\Model\Resource\Product\Type\Configurable\Product\Collection'
606602
)

dev/tests/integration/testsuite/Magento/ConfigurableProduct/Model/Product/Type/ConfigurableTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ public function testSetGetUsedProductAttributeIds()
7979
public function testSetUsedProductAttributeIds()
8080
{
8181
$testConfigurable = $this->_getAttributeByCode('test_configurable');
82-
$this->assertEmpty($this->_product->getData('_cache_instance_configurable_attributes'));
8382
$this->_model->setUsedProductAttributeIds([$testConfigurable->getId()], $this->_product);
8483
$attributes = $this->_product->getData('_cache_instance_configurable_attributes');
8584
$this->assertArrayHasKey(0, $attributes);

0 commit comments

Comments
 (0)