PayWithAmazon\ClientTest::testGetBillingAgreementDetails PHP Method

testGetBillingAgreementDetails() public method

    public function testGetBillingAgreementDetails()
    {
        $client = new Client($this->configParams);
        $fieldMappings = array('merchant_id' => 'SellerId', 'amazon_billing_agreement_id' => 'AmazonBillingAgreementId', 'address_consent_token' => 'AddressConsentToken', 'mws_auth_token' => 'MWSAuthToken');
        $action = 'GetBillingAgreementDetails';
        $parameters = $this->setParametersAndPost($fieldMappings, $action);
        $expectedParameters = $parameters['expectedParameters'];
        $apiCallParams = $parameters['apiCallParams'];
        $expectedStringParams = $this->callPrivateMethod($client, 'calculateSignatureAndParametersToString', $expectedParameters);
        $response = $client->getBillingAgreementDetails($apiCallParams);
        $apiParametersString = $client->getParameters();
        $this->assertEquals($apiParametersString, $expectedStringParams);
    }