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

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

    public function shouldSetZeroGatewayActionAsSell()
    {
        $action = new AuthorizeAction();
        $action->setGateway($this->createGatewayMock());
        $action->execute($request = new Authorize([]));
        $model = $request->getModel();
        $this->assertArrayHasKey('PAYMENTREQUEST_0_PAYMENTACTION', $model);
        $this->assertEquals(Api::PAYMENTACTION_AUTHORIZATION, $model['PAYMENTREQUEST_0_PAYMENTACTION']);
    }