You are here

private function TranslationRequestsApiTest::prepareTranslationRequestsApiMock in TMGMT Translator Smartling 8.4

Same name and namespace in other branches
  1. 8.3 vendor/smartling/api-sdk-php/tests/unit/TranslationRequestsApiTest.php \Smartling\Tests\Unit\TranslationRequestsApiTest::prepareTranslationRequestsApiMock()
1 call to TranslationRequestsApiTest::prepareTranslationRequestsApiMock()
TranslationRequestsApiTest::setUp in vendor/smartling/api-sdk-php/tests/unit/TranslationRequestsApiTest.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/TranslationRequestsApiTest.php, line 23

Class

TranslationRequestsApiTest

Namespace

Smartling\Tests\Unit

Code

private function prepareTranslationRequestsApiMock() {
  $this->object = $this
    ->getMockBuilder('Smartling\\TranslationRequests\\TranslationRequestsApi')
    ->setMethods(null)
    ->setConstructorArgs([
    $this->projectId,
    $this->client,
    null,
    TranslationRequestsApi::ENDPOINT_URL,
  ])
    ->getMock();
  $this
    ->invokeMethod($this->object, 'setAuth', [
    $this->authProvider,
  ]);
}