File tree 1 file changed +12
-1
lines changed
app/code/Magento/Cron/Test/Unit/Observer 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,12 @@ class ProcessCronQueueObserverTest extends \PHPUnit\Framework\TestCase
84
84
*/
85
85
protected $ appStateMock ;
86
86
87
+ /**
88
+ * @var \Magento\Framework\Lock\LockManagerInterface|\PHPUnit_Framework_MockObject_MockObject
89
+ */
90
+ private $ lockManagerMock ;
91
+
92
+
87
93
/**
88
94
* @var \Magento\Cron\Model\ResourceModel\Schedule|\PHPUnit_Framework_MockObject_MockObject
89
95
*/
@@ -135,6 +141,10 @@ protected function setUp()
135
141
->disableOriginalConstructor ()
136
142
->getMock ();
137
143
144
+ $ this ->lockManagerMock = $ this ->getMockBuilder (\Magento \Framework \Lock \LockManagerInterface::class)
145
+ ->disableOriginalConstructor ()
146
+ ->getMock ();
147
+
138
148
$ this ->observer = $ this ->createMock (\Magento \Framework \Event \Observer::class);
139
149
140
150
$ this ->dateTimeMock = $ this ->getMockBuilder (\Magento \Framework \Stdlib \DateTime \DateTime::class)
@@ -170,7 +180,8 @@ protected function setUp()
170
180
$ this ->dateTimeMock ,
171
181
$ phpExecutableFinderFactory ,
172
182
$ this ->loggerMock ,
173
- $ this ->appStateMock
183
+ $ this ->appStateMock ,
184
+ $ this ->lockManagerMock
174
185
);
175
186
}
176
187
You can’t perform that action at this time.
0 commit comments