You are here

public function FileApiFunctionalTest::testFileApiDeleteFile 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::testFileApiDeleteFile()
  2. 8.2 vendor/smartling/api-sdk-php/tests/functional/FileApiFunctionalTest.php \Smartling\Tests\Functional\FileApiFunctionalTest::testFileApiDeleteFile()
  3. 8.3 vendor/smartling/api-sdk-php/tests/functional/FileApiFunctionalTest.php \Smartling\Tests\Functional\FileApiFunctionalTest::testFileApiDeleteFile()

Test for deleting.

File

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

Class

FileApiFunctionalTest
Test class for File API examples.

Namespace

Smartling\Tests\Functional

Code

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