File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
app/code/Magento/Catalog/Test/Unit/Model/ResourceModel
dev/tests/integration/testsuite/Magento/CatalogSearch/Model/Indexer/Fulltext/Model/Plugin Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 7
7
namespace Magento \Catalog \Test \Unit \Model \ResourceModel ;
8
8
9
9
use Magento \Catalog \Model \Factory ;
10
+ use Magento \Catalog \Model \Indexer \Category \Product \Processor ;
10
11
use Magento \Catalog \Model \ResourceModel \Category ;
11
12
use Magento \Catalog \Model \ResourceModel \Category \CollectionFactory ;
12
13
use Magento \Eav \Model \Config ;
@@ -91,6 +92,11 @@ class CategoryTest extends \PHPUnit\Framework\TestCase
91
92
*/
92
93
private $ serializerMock ;
93
94
95
+ /**
96
+ * @var Processor|\PHPUnit_Framework_MockObject_MockObject
97
+ */
98
+ private $ indexerProcessorMock ;
99
+
94
100
/**
95
101
* {@inheritDoc}
96
102
*/
@@ -121,6 +127,9 @@ protected function setUp()
121
127
$ this ->collectionFactoryMock = $ this ->getMockBuilder (CollectionFactory::class)
122
128
->disableOriginalConstructor ()
123
129
->getMock ();
130
+ $ this ->indexerProcessorMock = $ this ->getMockBuilder (Processor::class)
131
+ ->disableOriginalConstructor ()
132
+ ->getMock ();
124
133
125
134
$ this ->serializerMock = $ this ->getMockBuilder (Json::class)->getMock ();
126
135
@@ -131,6 +140,7 @@ protected function setUp()
131
140
$ this ->managerMock ,
132
141
$ this ->treeFactoryMock ,
133
142
$ this ->collectionFactoryMock ,
143
+ $ this ->indexerProcessorMock ,
134
144
[],
135
145
$ this ->serializerMock
136
146
);
Original file line number Diff line number Diff line change 5
5
*/
6
6
declare (strict_types=1 );
7
7
8
- namespace integration \ testsuite \ Magento \CatalogSearch \Model \Indexer \Fulltext \Model \Plugin ;
8
+ namespace Magento \CatalogSearch \Model \Indexer \Fulltext \Model \Plugin ;
9
9
10
10
use Magento \Catalog \Api \CategoryRepositoryInterface ;
11
11
use Magento \Catalog \Model \Category ;
You can’t perform that action at this time.
0 commit comments