PayWithAmazon\ClientTest::testCancelOrderReference PHP Method

testCancelOrderReference() public method

    public function testCancelOrderReference()
    {
        $client = new Client($this->configParams);
        $fieldMappings = array('merchant_id' => 'SellerId', 'amazon_order_reference_id' => 'AmazonOrderReferenceId', 'cancelation_reason' => 'CancelationReason', 'mws_auth_token' => 'MWSAuthToken');
        $action = 'CancelOrderReference';
        $parameters = $this->setParametersAndPost($fieldMappings, $action);
        $expectedParameters = $parameters['expectedParameters'];
        $apiCallParams = $parameters['apiCallParams'];
        $expectedStringParams = $this->callPrivateMethod($client, 'calculateSignatureAndParametersToString', $expectedParameters);
        $response = $client->cancelOrderReference($apiCallParams);
        $apiParametersString = $client->getParameters();
        $this->assertEquals($apiParametersString, $expectedStringParams);
    }