Skip to content

Commit 5206728

Browse files
author
Oleksii Korshenko
committed
MAGETWO-82949: do the stock check on default level because the stock on website leve… magento#11485
- fixed unit tests
1 parent b58bc13 commit 5206728

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

app/code/Magento/CatalogInventory/Test/Unit/Model/ResourceModel/Product/StockStatusBaseSelectProcessorTest.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,13 @@ public function testProcess()
5656
[]
5757
)
5858
->willReturnSelf();
59-
$this->select->expects($this->once())
59+
60+
$this->select->expects($this->exactly(2))
6061
->method('where')
61-
->with('stock.stock_status = ?', Stock::STOCK_IN_STOCK)
62+
->withConsecutive(
63+
['stock.stock_status = ?', Stock::STOCK_IN_STOCK, null],
64+
['stock.website_id = ?', 0, null]
65+
)
6266
->willReturnSelf();
6367

6468
$this->stockStatusBaseSelectProcessor->process($this->select);

0 commit comments

Comments
 (0)