You are here

private function AuditLogApiTest::prepareAuditLogApiMock in TMGMT Translator Smartling 8.3

Same name and namespace in other branches
  1. 8.4 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

AuditLogApiTest

Namespace

Smartling\Tests\Unit

Code

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,
  ]);
}