File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
app/code/Magento/Indexer/Test/Unit/Model Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 15
15
use Magento \Indexer \Model \Indexer \Collection ;
16
16
use Magento \Indexer \Model \Indexer \CollectionFactory ;
17
17
use Magento \Indexer \Model \Indexer \State ;
18
+ use Magento \Indexer \Model \WorkingStateProvider ;
18
19
use Magento \Indexer \Model \Processor ;
19
20
use PHPUnit \Framework \MockObject \MockObject ;
20
21
use PHPUnit \Framework \TestCase ;
@@ -46,8 +47,16 @@ class ProcessorTest extends TestCase
46
47
*/
47
48
protected $ viewProcessorMock ;
48
49
50
+ /**
51
+ * @var WorkingStateProvider|MockObject
52
+ */
53
+ private $ workingStateProvider ;
54
+
49
55
protected function setUp (): void
50
56
{
57
+ $ this ->workingStateProvider = $ this ->getMockBuilder (WorkingStateProvider::class)
58
+ ->disableOriginalConstructor ()
59
+ ->getMock ();
51
60
$ this ->configMock = $ this ->getMockForAbstractClass (
52
61
ConfigInterface::class,
53
62
[],
@@ -75,7 +84,8 @@ protected function setUp(): void
75
84
$ this ->configMock ,
76
85
$ this ->indexerFactoryMock ,
77
86
$ this ->indexersFactoryMock ,
78
- $ this ->viewProcessorMock
87
+ $ this ->viewProcessorMock ,
88
+ $ this ->workingStateProvider
79
89
);
80
90
}
81
91
You can’t perform that action at this time.
0 commit comments