24 $this->stockHelper = $this->createMock(\
Magento\CatalogInventory\Helper\Stock::class);
25 $this->plugin = (new \Magento\Framework\TestFramework\Unit\Helper\ObjectManager($this))->getObject(
26 \
Magento\CatalogInventory\Model\AddStockStatusToCollection::class,
28 'stockHelper' => $this->stockHelper,
36 ->disableOriginalConstructor()
39 $this->stockHelper->expects($this->once())
40 ->method(
'addIsInStockFilterToCollection')
42 ->will($this->returnSelf());
testAddStockStatusToCollection()