private function RestClientTest::initClient in Salesforce Suite 8.4
Same name and namespace in other branches
- 8.3 tests/src/Unit/RestClientTest.php \Drupal\Tests\salesforce\Unit\RestClientTest::initClient()
- 5.0.x tests/src/Unit/RestClientTest.php \Drupal\Tests\salesforce\Unit\RestClientTest::initClient()
@covers ::__construct
14 calls to RestClientTest::initClient()
- RestClientTest::testExceptionApiCall in tests/
src/ Unit/ RestClientTest.php - @covers ::apiCall
- RestClientTest::testGetRecordTypes in tests/
src/ Unit/ RestClientTest.php - @covers ::getRecordTypes
- RestClientTest::testListResources in tests/
src/ Unit/ RestClientTest.php - @covers ::listResources
- RestClientTest::testObjectCreate in tests/
src/ Unit/ RestClientTest.php - @covers ::objectCreate
- RestClientTest::testObjectDelete in tests/
src/ Unit/ RestClientTest.php - @covers ::objectDelete
File
- tests/
src/ Unit/ RestClientTest.php, line 96
Class
- RestClientTest
- @coversDefaultClass \Drupal\salesforce\Rest\RestClient @group salesforce
Namespace
Drupal\Tests\salesforce\UnitCode
private function initClient($methods = NULL) {
if (empty($methods)) {
$methods = $this->methods;
}
$args = [
$this->httpClient,
$this->configFactory,
$this->state,
$this->cache,
$this->json,
$this->time,
$this->authMan,
];
$this->client = $this
->getMockBuilder(RestClient::CLASS)
->setMethods($methods)
->setConstructorArgs($args)
->getMock();
}