private function ProjectApiTest::prepareProjectApiMock in TMGMT Translator Smartling 8.3
Same name and namespace in other branches
- 8.4 vendor/smartling/api-sdk-php/tests/unit/ProjectApiTest.php \Smartling\Tests\Unit\ProjectApiTest::prepareProjectApiMock()
- 8.2 api-sdk-php/tests/unit/ProjectApiTest.php \Smartling\Tests\Unit\ProjectApiTest::prepareProjectApiMock()
- 8.2 vendor/smartling/api-sdk-php/tests/unit/ProjectApiTest.php \Smartling\Tests\Unit\ProjectApiTest::prepareProjectApiMock()
1 call to ProjectApiTest::prepareProjectApiMock()
- ProjectApiTest::setUp in vendor/
smartling/ api-sdk-php/ tests/ unit/ ProjectApiTest.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/ ProjectApiTest.php, line 53
Class
- ProjectApiTest
- Test class for Smartling\Project\ProjectsApi.
Namespace
Smartling\Tests\UnitCode
private function prepareProjectApiMock() {
$this->object = $this
->getMockBuilder('Smartling\\Project\\ProjectApi')
->setMethods(NULL)
->setConstructorArgs([
$this->projectId,
$this->client,
null,
ProjectApi::ENDPOINT_URL,
])
->getMock();
$this
->invokeMethod($this->object, 'setAuth', [
$this->authProvider,
]);
}