File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
lib/internal/Magento/Framework/Mview Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -244,6 +244,10 @@ public function testUnsubscribe()
244
244
->method ('setMode ' )
245
245
->with (StateInterface::MODE_DISABLED )
246
246
->will ($ this ->returnSelf ());
247
+ $ this ->stateMock ->expects ($ this ->once ())
248
+ ->method ('setStatus ' )
249
+ ->with (StateInterface::STATUS_IDLE )
250
+ ->will ($ this ->returnSelf ());
247
251
$ this ->changelogMock ->expects ($ this ->once ())
248
252
->method ('drop ' );
249
253
$ subscriptionMock = $ this ->createPartialMock (Subscription::class, ['remove ' ]);
@@ -271,6 +275,8 @@ public function testUnsubscribeDisabled()
271
275
->method ('setVersionId ' );
272
276
$ this ->stateMock ->expects ($ this ->never ())
273
277
->method ('setMode ' );
278
+ $ this ->stateMock ->expects ($ this ->never ())
279
+ ->method ('setStatus ' );
274
280
$ this ->changelogMock ->expects ($ this ->never ())
275
281
->method ('drop ' );
276
282
$ this ->subscriptionFactoryMock ->expects ($ this ->never ())
Original file line number Diff line number Diff line change @@ -235,7 +235,10 @@ public function unsubscribe()
235
235
}
236
236
237
237
// Update view state
238
- $ this ->getState ()->setMode (View \StateInterface::MODE_DISABLED )->save ();
238
+ $ this ->getState ()
239
+ ->setMode (View \StateInterface::MODE_DISABLED )
240
+ ->setStatus (View \StateInterface::STATUS_IDLE )
241
+ ->save ();
239
242
}
240
243
241
244
return $ this ;
You can’t perform that action at this time.
0 commit comments