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