private function JobsApiTest::prepareJobsApiMock in TMGMT Translator Smartling 8.4
Same name and namespace in other branches
- 8.3 vendor/smartling/api-sdk-php/tests/unit/JobsApiTest.php \Smartling\Tests\Unit\JobsApiTest::prepareJobsApiMock()
1 call to JobsApiTest::prepareJobsApiMock()
- JobsApiTest::setUp in vendor/
smartling/ api-sdk-php/ tests/ unit/ JobsApiTest.php - Sets up the fixture, for example, opens a network connection. This method is called before a test is executed.
File
- vendor/
smartling/ api-sdk-php/ tests/ unit/ JobsApiTest.php, line 37
Class
- JobsApiTest
- Test class for Smartling\Jobs\JobsApi.
Namespace
Smartling\Tests\UnitCode
private function prepareJobsApiMock() {
$this->object = $this
->getMockBuilder('Smartling\\Jobs\\JobsApi')
->setMethods(NULL)
->setConstructorArgs([
$this->projectId,
$this->client,
null,
JobsApi::ENDPOINT_URL,
])
->getMock();
$this
->invokeMethod($this->object, 'setAuth', [
$this->authProvider,
]);
}