Skip to content

Commit 657506b

Browse files
Fixed failed unit test
1 parent 0724c0c commit 657506b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/code/Magento/Indexer/Test/Unit/Controller/Adminhtml/Indexer/MassOnTheFlyTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,8 @@ public function testExecute($indexerIds, $exception, $expectsExceptionValues)
223223
->willReturn($indexerInterface);
224224

225225
if ($exception !== null) {
226+
$indexerInterface->expects($this->any())
227+
->method('isScheduled')->willReturn(true);
226228
$indexerInterface->expects($this->any())
227229
->method('setScheduled')->with(false)->willThrowException($exception);
228230
} else {

0 commit comments

Comments
 (0)