File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
app/code/Magento/CatalogSearch/Test/Unit/Model/Indexer Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -116,6 +116,7 @@ public function testExecute()
116
116
->willReturn ($ ids );
117
117
$ this ->saveHandler ->expects ($ this ->exactly (count ($ stores )))->method ('deleteIndex ' );
118
118
$ this ->saveHandler ->expects ($ this ->exactly (2 ))->method ('saveIndex ' );
119
+ $ this ->saveHandler ->expects ($ this ->exactly (2 ))->method ('isAvailable ' )->willReturn (true );
119
120
$ consecutiveStoreRebuildArguments = array_map (
120
121
function ($ store ) use ($ ids ) {
121
122
return [$ store , $ ids ];
@@ -186,6 +187,7 @@ public function testExecuteList()
186
187
->willReturn ($ ids );
187
188
$ this ->saveHandler ->expects ($ this ->exactly (count ($ stores )))->method ('deleteIndex ' );
188
189
$ this ->saveHandler ->expects ($ this ->exactly (2 ))->method ('saveIndex ' );
190
+ $ this ->saveHandler ->expects ($ this ->exactly (2 ))->method ('isAvailable ' )->willReturn (true );
189
191
$ this ->fullAction ->expects ($ this ->exactly (2 ))
190
192
->method ('rebuildStoreIndex ' )
191
193
->willReturn (new \ArrayObject ([$ indexData , $ indexData ]));
@@ -204,6 +206,7 @@ public function testExecuteRow()
204
206
->willReturn ([$ id ]);
205
207
$ this ->saveHandler ->expects ($ this ->exactly (count ($ stores )))->method ('deleteIndex ' );
206
208
$ this ->saveHandler ->expects ($ this ->exactly (2 ))->method ('saveIndex ' );
209
+ $ this ->saveHandler ->expects ($ this ->exactly (2 ))->method ('isAvailable ' )->willReturn (true );
207
210
$ this ->fullAction ->expects ($ this ->exactly (2 ))
208
211
->method ('rebuildStoreIndex ' )
209
212
->willReturn (new \ArrayObject ([$ indexData , $ indexData ]));
You can’t perform that action at this time.
0 commit comments