public function FileApiFunctionalTest::testFileApiGetStatus 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::testFileApiGetStatus()
- 8.2 vendor/smartling/api-sdk-php/tests/functional/FileApiFunctionalTest.php \Smartling\Tests\Functional\FileApiFunctionalTest::testFileApiGetStatus()
- 8.3 vendor/smartling/api-sdk-php/tests/functional/FileApiFunctionalTest.php \Smartling\Tests\Functional\FileApiFunctionalTest::testFileApiGetStatus()
Test for retrieving file status.
File
- vendor/
smartling/ api-sdk-php/ tests/ functional/ FileApiFunctionalTest.php, line 164
Class
- FileApiFunctionalTest
- Test class for File API examples.
Namespace
Smartling\Tests\FunctionalCode
public function testFileApiGetStatus() {
try {
$result = $this->fileApi
->getStatus(self::FILE_NAME, $this->targetLocale);
$this
->assertArrayHasKey('fileUri', $result);
$this
->assertArrayHasKey('lastUploaded', $result);
$this
->assertArrayHasKey('created', $result);
$this
->assertArrayHasKey('fileType', $result);
$this
->assertArrayHasKey('parserVersion', $result);
$this
->assertArrayHasKey('hasInstructions', $result);
$this
->assertArrayHasKey('totalStringCount', $result);
$this
->assertArrayHasKey('totalWordCount', $result);
$this
->assertArrayHasKey('authorizedStringCount', $result);
$this
->assertArrayHasKey('authorizedWordCount', $result);
$this
->assertArrayHasKey('completedStringCount', $result);
$this
->assertArrayHasKey('completedWordCount', $result);
$this
->assertArrayHasKey('excludedStringCount', $result);
$this
->assertArrayHasKey('excludedWordCount', $result);
} catch (SmartlingApiException $e) {
$this
->fail($e
->getMessage());
}
}