File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
app/code/Magento/Catalog/Test/Unit/Ui/DataProvider/Product/Form/Modifier Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 7
7
8
8
namespace Magento \Catalog \Test \Unit \Ui \DataProvider \Product \Form \Modifier ;
9
9
10
- use Magento \Catalog \ Ui \ DataProvider \ Product \ Form \ Modifier \ Categories ;
11
- use Magento \Catalog \Model \ResourceModel \ Category \ CollectionFactory as CategoryCollectionFactory ;
10
+ use Magento \Authorization \ Model \ Role ;
11
+ use Magento \Backend \Model \Auth \ Session ;
12
12
use Magento \Catalog \Model \ResourceModel \Category \Collection as CategoryCollection ;
13
+ use Magento \Catalog \Model \ResourceModel \Category \CollectionFactory as CategoryCollectionFactory ;
14
+ use Magento \Catalog \Ui \DataProvider \Product \Form \Modifier \Categories ;
13
15
use Magento \Framework \AuthorizationInterface ;
14
16
use Magento \Framework \DB \Helper as DbHelper ;
15
17
use Magento \Framework \UrlInterface ;
16
18
use Magento \Store \Model \Store ;
17
- use Magento \Backend \Model \Auth \Session ;
18
- use Magento \Authorization \Model \Role ;
19
19
use Magento \User \Model \User ;
20
20
use PHPUnit \Framework \MockObject \MockObject ;
21
21
@@ -93,6 +93,9 @@ protected function setUp(): void
93
93
$ this ->categoryCollectionMock ->expects ($ this ->any ())
94
94
->method ('addAttributeToFilter ' )
95
95
->willReturnSelf ();
96
+ $ this ->categoryCollectionMock ->expects ($ this ->any ())
97
+ ->method ('addAttributeToSort ' )
98
+ ->willReturnSelf ();
96
99
$ this ->categoryCollectionMock ->expects ($ this ->any ())
97
100
->method ('setStoreId ' )
98
101
->willReturnSelf ();
You can’t perform that action at this time.
0 commit comments