File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
app/code/Magento/ConfigurableProduct/Test/Unit/Model/Product/Type Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -629,14 +629,12 @@ public function testGetProductByAttributesReturnUsedProduct()
629
629
->method ('getData ' )
630
630
->with ('_cache_instance_store_filter ' )
631
631
->willReturn ('some_filter ' );
632
- $ productMock ->expects ($ this ->once ())->method ('hasData ' )->willReturn (true );
633
- $ productMock ->expects ($ this ->at (3 ))->method ('getData ' )->willReturn ([$ usedProductMock ]);
634
- $ productMock ->expects ($ this ->once ())->method ('getResource ' )->willReturn ($ productResource );
635
- $ productMock ->expects ($ this ->once ())->method ('getAttributeSetId ' )->willReturn (5 );
636
- $ productResource ->expects ($ this ->once ())->method ('loadAllAttributes ' )->with ($ productMock )->willReturnSelf ();
637
- $ productResource ->expects ($ this ->once ())
638
- ->method ('getSortedAttributes ' )
639
- ->with (5 )
632
+ $ productMock ->expects ($ this ->any ())->method ('hasData ' )->willReturn (true );
633
+ $ productMock ->expects ($ this ->at (3 ))->method ('getData ' )
634
+ ->with ('_cache_instance_products ' )
635
+ ->willReturn ([$ usedProductMock ]);
636
+ $ productMock ->expects ($ this ->at (5 ))->method ('getData ' )
637
+ ->with ('_cache_instance_product_set_attributes ' )
640
638
->willReturn ([$ eavAttributeMock ]);
641
639
$ eavAttributeMock ->expects ($ this ->once ())->method ('getId ' )->willReturn (1 );
642
640
$ eavAttributeMock ->expects ($ this ->once ())->method ('getAttributeCode ' )->willReturn ('attr_code ' );
You can’t perform that action at this time.
0 commit comments