Payum\Paypal\ExpressCheckout\Nvp\Tests\ApiTest::shouldUseReturnUrlSetInOptions PHP Метод

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

    public function shouldUseReturnUrlSetInOptions()
    {
        $api = new Api(array('username' => 'a_username', 'password' => 'a_password', 'signature' => 'a_signature', 'sandbox' => true, 'return_url' => 'optionReturnUrl', 'cancel_url' => 'optionCancelUrl'), $this->createSuccessHttpClientStub(), $this->createHttpMessageFactory());
        $result = $api->setExpressCheckout(array());
        $this->assertEquals('optionReturnUrl', $result['RETURNURL']);
    }