public function shouldRequestAuthorizeActionIfPayerIdNotSetInModel()
{
$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(AuthorizeToken::class));
$action = new AuthorizeAction();
$action->setGateway($gatewayMock);
$action->execute(new Authorize(['TOKEN' => 'aToken', 'PAYERID' => null]));
}