You are here

public function FileApiFunctionalTest::testFileApiRenameFile in TMGMT Translator Smartling 8.4

Same name and namespace in other branches
  1. 8.2 api-sdk-php/tests/functional/FileApiFunctionalTest.php \Smartling\Tests\Functional\FileApiFunctionalTest::testFileApiRenameFile()
  2. 8.2 vendor/smartling/api-sdk-php/tests/functional/FileApiFunctionalTest.php \Smartling\Tests\Functional\FileApiFunctionalTest::testFileApiRenameFile()
  3. 8.3 vendor/smartling/api-sdk-php/tests/functional/FileApiFunctionalTest.php \Smartling\Tests\Functional\FileApiFunctionalTest::testFileApiRenameFile()

Test for renaming file.

File

vendor/smartling/api-sdk-php/tests/functional/FileApiFunctionalTest.php, line 259

Class

FileApiFunctionalTest
Test class for File API examples.

Namespace

Smartling\Tests\Functional

Code

public function testFileApiRenameFile() {
  try {
    $result = $this->fileApi
      ->renameFile(self::FILE_NAME, self::NEW_FILE_NAME);
    $this
      ->assertTrue($result);
  } catch (SmartlingApiException $e) {
    $this
      ->fail($e
      ->getMessage());
  }
}