public function ProgressTrackerApiFunctionalTest::testGetToken in TMGMT Translator Smartling 8.3
Same name and namespace in other branches
- 8.4 vendor/smartling/api-sdk-php/tests/functional/ProgressTrackerApiFunctionalTest.php \Smartling\Tests\Functional\ProgressTrackerApiFunctionalTest::testGetToken()
Test for get token.
File
- vendor/
smartling/ api-sdk-php/ tests/ functional/ ProgressTrackerApiFunctionalTest.php, line 118
Class
- ProgressTrackerApiFunctionalTest
- Test class for Progress Tracker API examples.
Namespace
Smartling\Tests\FunctionalCode
public function testGetToken() {
try {
$result = $this->progressTrackerApi
->getToken(getenv("account_uid"));
$this
->assertArrayHasKey('token', $result);
$this
->assertArrayHasKey('config', $result);
$this
->assertArrayHasKey('apiKey', $result['config']);
$this
->assertArrayHasKey('authDomain', $result['config']);
$this
->assertArrayHasKey('databaseURL', $result['config']);
$this
->assertArrayHasKey('projectId', $result['config']);
$this
->assertArrayHasKey('storageBucket', $result['config']);
$this
->assertArrayHasKey('messagingSenderId', $result['config']);
} catch (SmartlingApiException $e) {
$this
->fail($e
->getMessage());
}
}