public function FileApiTest::constructorDataProvider in TMGMT Translator Smartling 8.2
Same name in this branch
- 8.2 api-sdk-php/tests/unit/FileApiTest.php \Smartling\Tests\Unit\FileApiTest::constructorDataProvider()
- 8.2 vendor/smartling/api-sdk-php/tests/unit/FileApiTest.php \Smartling\Tests\Unit\FileApiTest::constructorDataProvider()
Same name and namespace in other branches
- 8.4 vendor/smartling/api-sdk-php/tests/unit/FileApiTest.php \Smartling\Tests\Unit\FileApiTest::constructorDataProvider()
- 8.3 vendor/smartling/api-sdk-php/tests/unit/FileApiTest.php \Smartling\Tests\Unit\FileApiTest::constructorDataProvider()
Data provider for testConstructor method.
Tests if base url will be set correctly depending on income baseurl and mode.
Return value
array
File
- vendor/
smartling/ api-sdk-php/ tests/ unit/ FileApiTest.php, line 81
Class
- FileApiTest
- Test class for Smartling\File\FileApi.
Namespace
Smartling\Tests\UnitCode
public function constructorDataProvider() {
$this
->prepareHttpClientMock();
$mockedClient = $this->client;
return [
[
'product-id',
$mockedClient,
FileApi::ENDPOINT_URL,
],
[
'product-id',
$mockedClient,
FileApi::ENDPOINT_URL,
],
[
'product-id',
$mockedClient,
FileApi::ENDPOINT_URL . '/',
],
[
'product-id',
$mockedClient,
'https://www.google.com.ua/webhp',
],
];
}