File tree Expand file tree Collapse file tree 2 files changed +1
-4
lines changed
app/code/Magento/Catalog/Test/Unit/Controller/Adminhtml/Category
lib/internal/Magento/Framework/TestFramework/Unit/Helper Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change 17
17
use Magento \Framework \Controller \Result \JsonFactory ;
18
18
use Magento \Framework \Event \ManagerInterface ;
19
19
use Magento \Framework \ObjectManagerInterface ;
20
- use Magento \Framework \Registry ;
21
20
use Magento \Framework \TestFramework \Unit \Helper \ObjectManager ;
22
21
use Magento \Framework \View \LayoutFactory ;
23
22
use Magento \Framework \View \Page \Title ;
26
25
use Magento \Store \Model \StoreManagerInterface ;
27
26
use PHPUnit \Framework \MockObject \MockObject ;
28
27
use PHPUnit \Framework \TestCase ;
29
- use Magento \Framework \Stdlib \DateTime \Filter \Date ;
30
- use Magento \Cms \Model \Wysiwyg \Config ;
31
28
32
29
/**
33
30
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ protected function _getResourceModelMock()
97
97
->disableOriginalClone ()
98
98
->disableArgumentCloning ()
99
99
->disallowMockingUnknownTypes ()
100
- ->setMethods (['getIdFieldName ' , '__sleep ' , '__wakeup ' ])
100
+ ->onlyMethods (['getIdFieldName ' , '__sleep ' , '__wakeup ' ])
101
101
->getMock ();
102
102
$ resourceMock ->expects (
103
103
$ this ->_testObject ->any ()
You can’t perform that action at this time.
0 commit comments