Skip to content

Commit

Permalink
#27500 Fix static checks
Browse files Browse the repository at this point in the history
  • Loading branch information
lbajsarowicz committed Apr 12, 2020
1 parent 99e517f commit 1ad40ea
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
use Magento\Catalog\Model\Product\LinkTypeProvider;
use Magento\Catalog\Model\Product\Option;
use Magento\Catalog\Model\Product\Type;
use Magento\Catalog\Model\Product\Type\Simple as SimpleProductType;
use Magento\Catalog\Model\ProductLink\CollectionProvider;
use Magento\Catalog\Model\ProductLink\Link;
use Magento\Catalog\Model\ResourceModel\Product as ProductResourceModel;
Expand Down Expand Up @@ -399,7 +400,7 @@ public function testGetProductLinks()
->willReturn([$inputGroupLink]);

$expectedOutput = [$outputRelatedLink, $outputGroupLink];
$typeInstanceMock = $this->getMockBuilder(\Magento\ConfigurableProduct\Model\Product\Type\Simple::class)
$typeInstanceMock = $this->getMockBuilder(SimpleProductType::class)
->setMethods(["getSku"])
->getMock();
$typeInstanceMock->expects($this->atLeastOnce())->method('getSku')->willReturn("Simple Product 1");
Expand Down

0 comments on commit 1ad40ea

Please sign in to comment.