11 protected $name =
'ReturnAction';
18 $this->redirect->expects($this->once())
20 ->with($this->anything(),
$path, []);
25 $this->request->expects($this->once())
27 ->with(
'retry_authorization')
28 ->will($this->returnValue(
'true'));
29 $this->checkoutSession->expects($this->once())
31 ->with(
'getPaypalTransactionData')
32 ->will($this->returnValue([
'any array']));
33 $this->_expectForwardPlaceOrder();
34 $this->model->execute();
42 return [[
true], [
false]];
51 $this->checkoutSession->expects($this->at(0))
53 ->with(
'unsPaypalTransactionData');
54 $this->checkout->expects($this->once())
55 ->method(
'canSkipOrderReviewStep')
56 ->will($this->returnValue($canSkipOrderReviewStep));
57 if ($canSkipOrderReviewStep) {
58 $this->_expectForwardPlaceOrder();
62 $this->model->execute();
65 private function _expectForwardPlaceOrder()
67 $this->request->expects($this->once())
68 ->method(
'setActionName')
70 $this->request->expects($this->once())
71 ->method(
'setDispatched')
testExecute($canSkipOrderReviewStep)
_expectRedirect($path=' */*/review')
testExecuteAuthorizationRetrial()