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