public function JobsApiFunctionalTest::testJobsApiSearchJob 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::testJobsApiSearchJob()
Test for jobs search.
File
- vendor/
smartling/ api-sdk-php/ tests/ functional/ JobsApiFunctionalTest.php, line 227
Class
- JobsApiFunctionalTest
- Test class for Jobs API examples.
Namespace
Smartling\Tests\FunctionalCode
public function testJobsApiSearchJob() {
try {
$searchParameters = new SearchJobsParameters();
$searchParameters
->setFileUris([
'some_file_to_search.xml',
]);
$result = $this->jobsApi
->searchJobs($searchParameters);
$this
->assertArrayHasKey('totalCount', $result);
$this
->assertArrayHasKey('items', $result);
} catch (SmartlingApiException $e) {
$this
->fail($e
->getMessage());
}
}