You are here

public function FileApiTest::downloadFileLocaleCheckSuccessParams in TMGMT Translator Smartling 8.2

Same name in this branch
  1. 8.2 api-sdk-php/tests/unit/FileApiTest.php \Smartling\Tests\Unit\FileApiTest::downloadFileLocaleCheckSuccessParams()
  2. 8.2 vendor/smartling/api-sdk-php/tests/unit/FileApiTest.php \Smartling\Tests\Unit\FileApiTest::downloadFileLocaleCheckSuccessParams()
Same name and namespace in other branches
  1. 8.4 vendor/smartling/api-sdk-php/tests/unit/FileApiTest.php \Smartling\Tests\Unit\FileApiTest::downloadFileLocaleCheckSuccessParams()
  2. 8.3 vendor/smartling/api-sdk-php/tests/unit/FileApiTest.php \Smartling\Tests\Unit\FileApiTest::downloadFileLocaleCheckSuccessParams()

File

api-sdk-php/tests/unit/FileApiTest.php, line 260

Class

FileApiTest
Test class for Smartling\File\FileApi.

Namespace

Smartling\Tests\Unit

Code

public function downloadFileLocaleCheckSuccessParams() {
  return [
    [
      (new DownloadFileParameters())
        ->setRetrievalType(DownloadFileParameters::RETRIEVAL_TYPE_PSEUDO),
      'e',
    ],
    [
      (new DownloadFileParameters())
        ->setRetrievalType(DownloadFileParameters::RETRIEVAL_TYPE_PSEUDO),
      '',
    ],
    [
      (new DownloadFileParameters())
        ->setRetrievalType(DownloadFileParameters::RETRIEVAL_TYPE_PSEUDO),
      [],
    ],
    [
      (new DownloadFileParameters())
        ->setRetrievalType(DownloadFileParameters::RETRIEVAL_TYPE_PSEUDO),
      null,
    ],
    [
      (new DownloadFileParameters())
        ->setRetrievalType(DownloadFileParameters::RETRIEVAL_TYPE_PSEUDO),
      (object) [
        'foo',
      ],
    ],
  ];
}