public function shouldRequestConfirmOrderActionIfCheckoutStatusNotInitiatedAndPayerIdSetInModelAndUserActionNotCommit()
{
$gatewayMock = $this->createGatewayMock();
$gatewayMock->expects($this->at(0))->method('execute')->with($this->isInstanceOf(GetHttpRequest::class));
$gatewayMock->expects($this->at(1))->method('execute')->with($this->isInstanceOf(Sync::class));
$gatewayMock->expects($this->at(2))->method('execute')->with($this->isInstanceOf(ConfirmOrder::class));
$gatewayMock->expects($this->at(3))->method('execute')->with($this->isInstanceOf(DoExpressCheckoutPayment::class));
$gatewayMock->expects($this->at(4))->method('execute')->with($this->isInstanceOf(Sync::class));
$action = new AuthorizeAction();
$action->setGateway($gatewayMock);
$action->execute(new Authorize(array('AUTHORIZE_TOKEN_USERACTION' => '', 'TOKEN' => 'aToken', 'PAYERID' => 'aPayerId', 'PAYMENTREQUEST_0_AMT' => 5, 'CHECKOUTSTATUS' => Api::CHECKOUTSTATUS_PAYMENT_ACTION_NOT_INITIATED)));
}