Braintree\TestingGateway::_doTestRequest PHP Method

_doTestRequest() private method

private _doTestRequest ( $testPath, $transactionId )
    private function _doTestRequest($testPath, $transactionId)
    {
        self::_checkEnvironment();
        $path = $this->_config->merchantPath() . '/transactions/' . $transactionId . $testPath;
        $response = $this->_http->put($path);
        return Transaction::factory($response['transaction']);
    }