File tree Expand file tree Collapse file tree 2 files changed +0
-5
lines changed
app/code/Magento/ConfigurableProduct/Test/Unit/Model/Product/Type
dev/tests/integration/testsuite/Magento/ConfigurableProduct/Model/Product/Type Expand file tree Collapse file tree 2 files changed +0
-5
lines changed Original file line number Diff line number Diff line change @@ -597,10 +597,6 @@ public function testGetProductByAttributesReturnUsedProduct()
597
597
->setMethods (['getId ' , 'getAttributeCode ' ])
598
598
->disableOriginalConstructor ()
599
599
->getMock ();
600
- $ productResource = $ this ->getMockBuilder ('\Magento\Catalog\Model\Resource\Product ' )
601
- ->setMethods (['__wakeup ' , 'loadAllAttributes ' , 'getSortedAttributes ' ])
602
- ->disableOriginalConstructor ()
603
- ->getMock ();
604
600
$ productCollection = $ this ->getMockBuilder (
605
601
'Magento\ConfigurableProduct\Model\Resource\Product\Type\Configurable\Product\Collection '
606
602
)
Original file line number Diff line number Diff line change @@ -79,7 +79,6 @@ public function testSetGetUsedProductAttributeIds()
79
79
public function testSetUsedProductAttributeIds ()
80
80
{
81
81
$ testConfigurable = $ this ->_getAttributeByCode ('test_configurable ' );
82
- $ this ->assertEmpty ($ this ->_product ->getData ('_cache_instance_configurable_attributes ' ));
83
82
$ this ->_model ->setUsedProductAttributeIds ([$ testConfigurable ->getId ()], $ this ->_product );
84
83
$ attributes = $ this ->_product ->getData ('_cache_instance_configurable_attributes ' );
85
84
$ this ->assertArrayHasKey (0 , $ attributes );
You can’t perform that action at this time.
0 commit comments