public function AuditLogApiFunctionalTest::setUp in TMGMT Translator Smartling 8.4
Same name and namespace in other branches
- 8.3 vendor/smartling/api-sdk-php/tests/functional/AuditLogApiFunctionalTest.php \Smartling\Tests\Functional\AuditLogApiFunctionalTest::setUp()
File
- vendor/
smartling/ api-sdk-php/ tests/ functional/ AuditLogApiFunctionalTest.php, line 17
Class
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->auditLogApi = AuditLogApi::create($authProvider, $projectId);
}