You are here

private function ProgressTrackerApiTest::prepareProgressTrackerApiMock in TMGMT Translator Smartling 8.4

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

Class

ProgressTrackerApiTest
Test class for Smartling\ProgressTracker\ProgressTrackerApi.

Namespace

Smartling\Tests\Unit

Code

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