Skip to content

Commit 7f8c6a0

Browse files
author
Mike Weis
committed
MAGETWO-28252: Catalog Inventory Integration API
- fix unit test failure
1 parent 299f497 commit 7f8c6a0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/code/Magento/CatalogInventory/Test/Unit/Model/Plugin/AfterProductLoadTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ protected function setUp()
5959
->with($stockItemMock)
6060
->willReturnSelf();
6161

62-
$this->productMock = $this->getMock('\Magento\Catalog\Api\Data\ProductInterface');
62+
$this->productMock = $this->getMockBuilder('\Magento\Catalog\Model\Product')
63+
->disableOriginalConstructor()
64+
->getMock();
6365
$this->productMock->expects($this->once())
6466
->method('setExtensionAttributes')
6567
->with($this->productExtensionMock)

0 commit comments

Comments
 (0)