You are here

public function FileApiTest::constructorDataProvider in TMGMT Translator Smartling 8.3

Same name and namespace in other branches
  1. 8.4 vendor/smartling/api-sdk-php/tests/unit/FileApiTest.php \Smartling\Tests\Unit\FileApiTest::constructorDataProvider()
  2. 8.2 api-sdk-php/tests/unit/FileApiTest.php \Smartling\Tests\Unit\FileApiTest::constructorDataProvider()
  3. 8.2 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 83

Class

FileApiTest
Test class for Smartling\File\FileApi.

Namespace

Smartling\Tests\Unit

Code

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',
    ],
  ];
}