Skip to content

Commit 0d4cd77

Browse files
committed
MC-21897: Fatal error catalogpermissions_product indexer does not exist during cron reindex
1 parent a5cd690 commit 0d4cd77

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/internal/Magento/Framework/Mview/Test/Unit/ViewTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,9 @@ public function testUpdate()
273273
$this->stateMock->expects($this->once())
274274
->method('setVersionId')
275275
->will($this->returnSelf());
276+
$this->stateMock->expects($this->atLeastOnce())
277+
->method('getMode')
278+
->willReturn(\Magento\Framework\Mview\View\StateInterface::MODE_ENABLED);
276279
$this->stateMock->expects($this->exactly(2))
277280
->method('getStatus')
278281
->will($this->returnValue(\Magento\Framework\Mview\View\StateInterface::STATUS_IDLE));
@@ -335,6 +338,9 @@ public function testUpdateWithException()
335338
->will($this->returnValue($lastVersionId));
336339
$this->stateMock->expects($this->never())
337340
->method('setVersionId');
341+
$this->stateMock->expects($this->atLeastOnce())
342+
->method('getMode')
343+
->willReturn(\Magento\Framework\Mview\View\StateInterface::MODE_ENABLED);
338344
$this->stateMock->expects($this->exactly(2))
339345
->method('getStatus')
340346
->will($this->returnValue(\Magento\Framework\Mview\View\StateInterface::STATUS_IDLE));

0 commit comments

Comments
 (0)