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