24 $this->checkoutSession = $this->createMock(\
Magento\Checkout\Model\Session::class);
25 $this->
object = $this->objectManager->getObject(
26 \
Magento\Checkout\Observer\UnsetAllObserver::class,
27 [
'checkoutSession' => $this->checkoutSession]
33 $this->checkoutSession->expects($this->once())->method(
'clearQuote')->will($this->returnSelf());
34 $this->checkoutSession->expects($this->once())->method(
'clearStorage')->will($this->returnSelf());
36 $observerMock = $this->getMockBuilder(\
Magento\Framework\Event\Observer::class)
37 ->disableOriginalConstructor()
40 $this->
object->execute($observerMock);