public function JobsApiFunctionalTest::testJobsApiGetJob in TMGMT Translator Smartling 8.4
Same name and namespace in other branches
- 8.3 vendor/smartling/api-sdk-php/tests/functional/JobsApiFunctionalTest.php \Smartling\Tests\Functional\JobsApiFunctionalTest::testJobsApiGetJob()
Test for job get.
File
- vendor/
smartling/ api-sdk-php/ tests/ functional/ JobsApiFunctionalTest.php, line 182
Class
- JobsApiFunctionalTest
- Test class for Jobs API examples.
Namespace
Smartling\Tests\FunctionalCode
public function testJobsApiGetJob() {
try {
$result = $this->jobsApi
->getJob($this->jobId);
$this
->assertArrayHasKey('translationJobUid', $result);
$this
->assertArrayHasKey('jobName', $result);
$this
->assertArrayHasKey('targetLocaleIds', $result);
$this
->assertArrayHasKey('description', $result);
$this
->assertArrayHasKey('dueDate', $result);
$this
->assertArrayHasKey('referenceNumber', $result);
$this
->assertArrayHasKey('callbackUrl', $result);
$this
->assertArrayHasKey('callbackMethod', $result);
$this
->assertArrayHasKey('createdDate', $result);
$this
->assertArrayHasKey('modifiedDate', $result);
$this
->assertArrayHasKey('createdByUserUid', $result);
$this
->assertArrayHasKey('modifiedByUserUid', $result);
$this
->assertArrayHasKey('firstCompletedDate', $result);
$this
->assertArrayHasKey('lastCompletedDate', $result);
$this
->assertArrayHasKey('jobStatus', $result);
$this
->assertArrayHasKey('sourceFiles', $result);
} catch (SmartlingApiException $e) {
$this
->fail($e
->getMessage());
}
}