protected function ApiTestAbstract::prepareAuthProviderMock in TMGMT Translator Smartling 8.4
Same name and namespace in other branches
- 8.2 api-sdk-php/tests/unit/ApiTestAbstract.php \Smartling\Tests\Unit\ApiTestAbstract::prepareAuthProviderMock()
- 8.2 vendor/smartling/api-sdk-php/tests/unit/ApiTestAbstract.php \Smartling\Tests\Unit\ApiTestAbstract::prepareAuthProviderMock()
- 8.3 vendor/smartling/api-sdk-php/tests/unit/ApiTestAbstract.php \Smartling\Tests\Unit\ApiTestAbstract::prepareAuthProviderMock()
2 calls to ApiTestAbstract::prepareAuthProviderMock()
- ApiTestAbstract::setUp in vendor/
smartling/ api-sdk-php/ tests/ unit/ ApiTestAbstract.php - Sets up the fixture, for example, opens a network connection. This method is called before a test is executed.
- FileApiTest::setUp in vendor/
smartling/ api-sdk-php/ tests/ unit/ FileApiTest.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/ ApiTestAbstract.php, line 200
Class
- ApiTestAbstract
- Class ApiTestAbstract @package Smartling\Tests
Namespace
Smartling\Tests\UnitCode
protected function prepareAuthProviderMock() {
$this->authProvider = $this
->getMockBuilder('\\Smartling\\AuthApi\\AuthApiInterface')
->setMethods([
'getAccessToken',
'getTokenType',
'resetToken',
])
->setConstructorArgs([
$this->userIdentifier,
$this->secretKey,
$this->client,
])
->getMock();
$this->authProvider
->expects($this
->any())
->method('getAccessToken')
->willReturn('fakeToken');
$this->authProvider
->expects($this
->any())
->method('getTokenType')
->willReturn('Bearer');
$this->authProvider
->expects($this
->any())
->method('resetToken');
}