File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
lib/internal/Magento/Framework/Mview/Test/Unit Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff 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 ));
You can’t perform that action at this time.
0 commit comments