Skip to content
Snippets Groups Projects
Commit 4b25ecd7 authored by hyscaler's avatar hyscaler Committed by Aaron Bauman
Browse files

Issue #3120421 by nettantra: Incorrect Spelling of getApiEndpoint in src/Rest/RestClient.php

parent dce96766
No related branches found
No related tags found
No related merge requests found
......@@ -25,7 +25,7 @@
"source": "http://cgit.drupalcode.org/salesforce"
},
"require": {
"messageagency/force.com-toolkit-for-php": "^1.0.0",
"messageagency/force.com-toolkit-for-php": "^1.0.1",
"ext-soap": "*"
}
}
......@@ -70,7 +70,7 @@ class SoapClient extends SforcePartnerClient implements SoapClientInterface {
}
$this->createConnection($this->wsdl);
$this->setSessionHeader($token->getAccessToken());
$this->setEndPoint($this->authMan->getProvider()->getApiEndpoint('partner'));
$this->setEndpoint($this->authMan->getProvider()->getApiEndpoint('partner'));
$this->isConnected = TRUE;
}
......
......@@ -178,7 +178,7 @@ class RestClient implements RestClientInterface {
$url = $this->authProvider->getInstanceUrl() . $path;
}
else {
$url = $this->authProvider->getApiEndPoint() . $path;
$url = $this->authProvider->getApiEndpoint() . $path;
}
try {
......@@ -463,7 +463,7 @@ class RestClient implements RestClientInterface {
'records' => [],
]);
}
$version_path = parse_url($this->authProvider->getApiEndPoint(), PHP_URL_PATH);
$version_path = parse_url($this->authProvider->getApiEndpoint(), PHP_URL_PATH);
$next_records_url = str_replace($version_path, '', $results->nextRecordsUrl());
return new SelectQueryResult($this->apiCall($next_records_url));
}
......
......@@ -65,7 +65,7 @@ class RestClientTest extends UnitTestCase {
->disableOriginalConstructor()
->getMock();
$this->authProvider->expects($this->any())
->method('getApiEndPoint')
->method('getApiEndpoint')
->willReturn('https://example.com');
$this->authConfig =
$this->getMockBuilder(SalesforceAuthConfig::CLASS)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment