Skip to content

Commit 718c71f

Browse files
committed
MAGETWO-86125: Sorting on price of configurable products in catalog not working properly
1 parent 1847901 commit 718c71f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/code/Magento/CatalogInventory/Test/Unit/Observer/UpdateItemsStockUponConfigChangeObserverTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ protected function setUp()
3535

3636
$this->event = $this->getMockBuilder(\Magento\Framework\Event::class)
3737
->disableOriginalConstructor()
38-
->setMethods(['getWebsite'])
38+
->setMethods(['getWebsite', 'getChangedPaths'])
3939
->getMock();
4040

4141
$this->eventObserver = $this->getMockBuilder(\Magento\Framework\Event\Observer::class)
@@ -65,6 +65,9 @@ public function testUpdateItemsStockUponConfigChange()
6565
$this->event->expects($this->once())
6666
->method('getWebsite')
6767
->will($this->returnValue($websiteId));
68+
$this->event->expects($this->once())
69+
->method('getChangedPaths')
70+
->will($this->returnValue([\Magento\CatalogInventory\Model\Configuration::XML_PATH_MANAGE_STOCK]));
6871

6972
$this->observer->execute($this->eventObserver);
7073
}

0 commit comments

Comments
 (0)