File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
app/code/Magento/CatalogInventory/Test/Unit/Observer Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ protected function setUp()
35
35
36
36
$ this ->event = $ this ->getMockBuilder (\Magento \Framework \Event::class)
37
37
->disableOriginalConstructor ()
38
- ->setMethods (['getWebsite ' ])
38
+ ->setMethods (['getWebsite ' , ' getChangedPaths ' ])
39
39
->getMock ();
40
40
41
41
$ this ->eventObserver = $ this ->getMockBuilder (\Magento \Framework \Event \Observer::class)
@@ -65,6 +65,9 @@ public function testUpdateItemsStockUponConfigChange()
65
65
$ this ->event ->expects ($ this ->once ())
66
66
->method ('getWebsite ' )
67
67
->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 ]));
68
71
69
72
$ this ->observer ->execute ($ this ->eventObserver );
70
73
}
You can’t perform that action at this time.
0 commit comments