public function FileApiFunctionalTest::testFileApiRenameFile in TMGMT Translator Smartling 8.4
Same name and namespace in other branches
- 8.2 api-sdk-php/tests/functional/FileApiFunctionalTest.php \Smartling\Tests\Functional\FileApiFunctionalTest::testFileApiRenameFile()
- 8.2 vendor/smartling/api-sdk-php/tests/functional/FileApiFunctionalTest.php \Smartling\Tests\Functional\FileApiFunctionalTest::testFileApiRenameFile()
- 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\FunctionalCode
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());
}
}