public function FileApiTest::testGetExtendedList in TMGMT Translator Smartling 8.2
Same name in this branch
- 8.2 api-sdk-php/tests/unit/FileApiTest.php \Smartling\Tests\Unit\FileApiTest::testGetExtendedList()
- 8.2 vendor/smartling/api-sdk-php/tests/unit/FileApiTest.php \Smartling\Tests\Unit\FileApiTest::testGetExtendedList()
Same name and namespace in other branches
- 8.4 vendor/smartling/api-sdk-php/tests/unit/FileApiTest.php \Smartling\Tests\Unit\FileApiTest::testGetExtendedList()
- 8.3 vendor/smartling/api-sdk-php/tests/unit/FileApiTest.php \Smartling\Tests\Unit\FileApiTest::testGetExtendedList()
@covers \Smartling\File\FileApi::getExtendedList
File
- vendor/
smartling/ api-sdk-php/ tests/ unit/ FileApiTest.php, line 421
Class
- FileApiTest
- Test class for Smartling\File\FileApi.
Namespace
Smartling\Tests\UnitCode
public function testGetExtendedList() {
$locale = 'nl-NL';
$endpointUrl = vsprintf('%s/%s/locales/%s/files/list', [
FileApi::ENDPOINT_URL,
$this->projectId,
$locale,
]);
$this->client
->expects($this
->once())
->method('request')
->with('get', $endpointUrl, [
'headers' => [
'Accept' => 'application/json',
'Authorization' => vsprintf('%s %s', [
$this->authProvider
->getTokenType(),
$this->authProvider
->getAccessToken(),
]),
],
'exceptions' => false,
'query' => [],
])
->willReturn($this->responseMock);
$this->object
->getExtendedList($locale);
}