You are here

public function ContextApiFunctionalTest::testGetAllMissingResources in TMGMT Translator Smartling 8.4

Same name and namespace in other branches
  1. 8.2 api-sdk-php/tests/functional/ContextApiFunctionalTest.php \Smartling\Tests\Functional\ContextApiFunctionalTest::testGetAllMissingResources()
  2. 8.2 vendor/smartling/api-sdk-php/tests/functional/ContextApiFunctionalTest.php \Smartling\Tests\Functional\ContextApiFunctionalTest::testGetAllMissingResources()
  3. 8.3 vendor/smartling/api-sdk-php/tests/functional/ContextApiFunctionalTest.php \Smartling\Tests\Functional\ContextApiFunctionalTest::testGetAllMissingResources()

Test for get all missing resources.

File

vendor/smartling/api-sdk-php/tests/functional/ContextApiFunctionalTest.php, line 125

Class

ContextApiFunctionalTest
Test class for Project API examples.

Namespace

Smartling\Tests\Functional

Code

public function testGetAllMissingResources() {
  try {
    $result = $this->contextApi
      ->getAllMissingResources();
    $this
      ->assertArrayHasKey('items', $result);
    $this
      ->assertArrayHasKey('all', $result);
  } catch (SmartlingApiException $e) {
    $this
      ->fail($e
      ->getMessage());
  }
}