You are here

public function FileApiTest::downloadFileParams 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::downloadFileParams()
  2. 8.2 api-sdk-php/tests/unit/FileApiTest.php \Smartling\Tests\Unit\FileApiTest::downloadFileParams()
  3. 8.2 vendor/smartling/api-sdk-php/tests/unit/FileApiTest.php \Smartling\Tests\Unit\FileApiTest::downloadFileParams()

File

vendor/smartling/api-sdk-php/tests/unit/FileApiTest.php, line 230

Class

FileApiTest
Test class for Smartling\File\FileApi.

Namespace

Smartling\Tests\Unit

Code

public function downloadFileParams() {
  return [
    [
      (new DownloadFileParameters())
        ->setRetrievalType(DownloadFileParameters::RETRIEVAL_TYPE_PSEUDO),
      'en-EN',
      '<?xml version="1.0"?><response><item key="6"></item></response>',
    ],
    [
      null,
      'en-EN',
      '<?xml version="1.0"?><response><item key="6"></item></response>',
    ],
    [
      null,
      'en',
      '{"string1":"translation1", "string2":"translation2"}',
    ],
  ];
}