You are here

public function JobsApiFunctionalTest::testJobsApiAddLocaleToJob in TMGMT Translator Smartling 8.3

Same name and namespace in other branches
  1. 8.4 vendor/smartling/api-sdk-php/tests/functional/JobsApiFunctionalTest.php \Smartling\Tests\Functional\JobsApiFunctionalTest::testJobsApiAddLocaleToJob()

Test for add locale to job get.

File

vendor/smartling/api-sdk-php/tests/functional/JobsApiFunctionalTest.php, line 263

Class

JobsApiFunctionalTest
Test class for Jobs API examples.

Namespace

Smartling\Tests\Functional

Code

public function testJobsApiAddLocaleToJob() {
  try {
    $params = new AddLocaleToJobParameters();
    $params
      ->setSyncContent(false);
    $this->jobsApi
      ->addLocaleToJobSync($this->jobId, 'fr-FR', $params);
  } catch (SmartlingApiException $e) {
    $this
      ->fail($e
      ->getMessage());
  }
}