private function ContextApiTest::prepareContextApiMock in TMGMT Translator Smartling 8.3
Same name and namespace in other branches
- 8.4 vendor/smartling/api-sdk-php/tests/unit/ContextApiTest.php \Smartling\Tests\ContextApiTest::prepareContextApiMock()
- 8.2 api-sdk-php/tests/unit/ContextApiTest.php \Smartling\Tests\ContextApiTest::prepareContextApiMock()
- 8.2 vendor/smartling/api-sdk-php/tests/unit/ContextApiTest.php \Smartling\Tests\ContextApiTest::prepareContextApiMock()
1 call to ContextApiTest::prepareContextApiMock()
- ContextApiTest::setUp in vendor/
smartling/ api-sdk-php/ tests/ unit/ ContextApiTest.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/ ContextApiTest.php, line 29
Class
- ContextApiTest
- Test class for Smartling\Context\ContextApi.
Namespace
Smartling\TestsCode
private function prepareContextApiMock() {
$this->object = $this
->getMockBuilder('Smartling\\Context\\ContextApi')
->setMethods([
'readFile',
])
->setConstructorArgs([
$this->projectId,
$this->client,
null,
ContextApi::ENDPOINT_URL,
])
->getMock();
$this->object
->expects(self::any())
->method('readFile')
->willReturn($this->streamPlaceholder);
$this
->invokeMethod($this->object, 'setAuth', [
$this->authProvider,
]);
}