PayWithAmazon\ClientTest::testGetCaptureDetails PHP Method

testGetCaptureDetails() public method

    public function testGetCaptureDetails()
    {
        $client = new Client($this->configParams);
        $fieldMappings = array('merchant_id' => 'SellerId', 'amazon_capture_id' => 'AmazonCaptureId', 'mws_auth_token' => 'MWSAuthToken');
        $action = 'GetCaptureDetails';
        $parameters = $this->setParametersAndPost($fieldMappings, $action);
        $expectedParameters = $parameters['expectedParameters'];
        $apiCallParams = $parameters['apiCallParams'];
        $expectedStringParams = $this->callPrivateMethod($client, 'calculateSignatureAndParametersToString', $expectedParameters);
        $response = $client->getCaptureDetails($apiCallParams);
        $apiParametersString = $client->getParameters();
        $this->assertEquals($apiParametersString, $expectedStringParams);
    }