Payum\Paypal\ExpressCheckout\Nvp\Tests\Action\AutorizeActionTest::shouldNotRequestDoExpressCheckoutGatewayActionIfAmountZero PHP Метод

shouldNotRequestDoExpressCheckoutGatewayActionIfAmountZero() публичный Метод

    public function shouldNotRequestDoExpressCheckoutGatewayActionIfAmountZero()
    {
        $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(1))->method('execute')->with($this->isInstanceOf(Sync::class));
        $action = new AuthorizeAction();
        $action->setGateway($gatewayMock);
        $action->execute(new Authorize(array('TOKEN' => 'aToken', 'CHECKOUTSTATUS' => Api::CHECKOUTSTATUS_PAYMENT_ACTION_NOT_INITIATED, 'PAYERID' => 'aPayerId', 'PAYMENTREQUEST_0_AMT' => 0)));
    }