File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
app/code/Magento/Catalog/Test/Unit/Ui/DataProvider/Product/Form/Modifier Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 1111use Magento \Backend \Model \Auth \Session ;
1212use Magento \Catalog \Model \ResourceModel \Category \Collection as CategoryCollection ;
1313use Magento \Catalog \Model \ResourceModel \Category \CollectionFactory as CategoryCollectionFactory ;
14- use Magento \Framework \App \CacheInterface ;
1514use Magento \Catalog \Ui \DataProvider \Product \Form \Modifier \Categories ;
15+ use Magento \Framework \App \CacheInterface ;
1616use Magento \Framework \AuthorizationInterface ;
1717use Magento \Framework \DB \Helper as DbHelper ;
1818use Magento \Framework \UrlInterface ;
@@ -91,6 +91,9 @@ protected function setUp(): void
9191 $ this ->categoryCollectionMock ->expects ($ this ->any ())
9292 ->method ('addAttributeToSelect ' )
9393 ->willReturnSelf ();
94+ $ this ->categoryCollectionMock ->expects ($ this ->any ())
95+ ->method ('addAttributeToSort ' )
96+ ->willReturnSelf ();
9497 $ this ->categoryCollectionMock ->expects ($ this ->any ())
9598 ->method ('addAttributeToFilter ' )
9699 ->willReturnSelf ();
You can’t perform that action at this time.
0 commit comments