Payum\Paypal\ProHosted\Nvp\Tests\ApiTest::shouldAddVersionOnDoCreateButtonCall PHP Method

shouldAddVersionOnDoCreateButtonCall() public method

    public function shouldAddVersionOnDoCreateButtonCall()
    {
        $api = new Api(array('username' => 'a_username', 'password' => 'a_password', 'signature' => 'a_signature', 'business' => 'a_business', 'sandbox' => true, 'return' => 'optionReturnUrl'), $this->createSuccessHttpClientStub(), $this->createHttpMessageFactory());
        $result = $api->doCreateButton([]);
        $this->assertArrayHasKey('VERSION', $result);
        $this->assertEquals(Api::VERSION, $result['VERSION']);
    }