You are here

private function AuthApiTest::prepareAuthApiMock in TMGMT Translator Smartling 8.2

Same name in this branch
  1. 8.2 api-sdk-php/tests/unit/AuthApiTest.php \Smartling\Tests\AuthApiTest::prepareAuthApiMock()
  2. 8.2 vendor/smartling/api-sdk-php/tests/unit/AuthApiTest.php \Smartling\Tests\AuthApiTest::prepareAuthApiMock()
Same name and namespace in other branches
  1. 8.4 vendor/smartling/api-sdk-php/tests/unit/AuthApiTest.php \Smartling\Tests\AuthApiTest::prepareAuthApiMock()
  2. 8.3 vendor/smartling/api-sdk-php/tests/unit/AuthApiTest.php \Smartling\Tests\AuthApiTest::prepareAuthApiMock()
2 calls to AuthApiTest::prepareAuthApiMock()
AuthApiTest::setUp in api-sdk-php/tests/unit/AuthApiTest.php
Sets up the fixture, for example, opens a network connection. This method is called before a test is executed.
AuthApiTest::setUp in vendor/smartling/api-sdk-php/tests/unit/AuthApiTest.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/AuthApiTest.php, line 24

Class

AuthApiTest
Test class for Smartling\AuthApi\AuthTokenProvider.

Namespace

Smartling\Tests

Code

private function prepareAuthApiMock() {
  $this->object = $this
    ->getMockBuilder('Smartling\\AuthApi\\AuthTokenProvider')
    ->setMethods(NULL)
    ->setConstructorArgs([
    $this->userIdentifier,
    $this->secretKey,
    $this->client,
  ])
    ->getMock();
}