public function testRestoreQuote() { $this->session->expects(static::once())->method('restoreQuote')->willReturn(true); static::assertTrue($this->checkout->restoreQuote()); }
/** * Customer canceled payment on gateway side. * * @return void */ public function execute() { $this->checkoutHelper->cancelCurrentOrder(''); $this->checkoutHelper->restoreQuote(); $this->_redirect('checkout', ['_fragment' => 'payment']); }