public function ProgressTrackerApiFunctionalTest::setUp in TMGMT Translator Smartling 8.4
Same name and namespace in other branches
- 8.3 vendor/smartling/api-sdk-php/tests/functional/ProgressTrackerApiFunctionalTest.php \Smartling\Tests\Functional\ProgressTrackerApiFunctionalTest::setUp()
Test mixture.
File
- vendor/
smartling/ api-sdk-php/ tests/ functional/ ProgressTrackerApiFunctionalTest.php, line 25
Class
- ProgressTrackerApiFunctionalTest
- Test class for Progress Tracker API examples.
Namespace
Smartling\Tests\FunctionalCode
public function setUp() {
$projectId = getenv('project_id');
$userIdentifier = getenv('user_id');
$userSecretKey = getenv('user_key');
if (empty($projectId) || empty($userIdentifier) || empty($userSecretKey)) {
$this
->fail('Missing required parameters');
}
$authProvider = AuthTokenProvider::create($userIdentifier, $userSecretKey);
$this->progressTrackerApi = ProgressTrackerApi::create($authProvider, $projectId);
}