You are here

private function ProjectApiTest::prepareProjectApiMock in TMGMT Translator Smartling 8.2

Same name in this branch
  1. 8.2 api-sdk-php/tests/unit/ProjectApiTest.php \Smartling\Tests\Unit\ProjectApiTest::prepareProjectApiMock()
  2. 8.2 vendor/smartling/api-sdk-php/tests/unit/ProjectApiTest.php \Smartling\Tests\Unit\ProjectApiTest::prepareProjectApiMock()
Same name and namespace in other branches
  1. 8.4 vendor/smartling/api-sdk-php/tests/unit/ProjectApiTest.php \Smartling\Tests\Unit\ProjectApiTest::prepareProjectApiMock()
  2. 8.3 vendor/smartling/api-sdk-php/tests/unit/ProjectApiTest.php \Smartling\Tests\Unit\ProjectApiTest::prepareProjectApiMock()
2 calls to ProjectApiTest::prepareProjectApiMock()
ProjectApiTest::setUp in 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.
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\Unit

Code

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