Skip to content
This repository was archived by the owner on Oct 24, 2023. It is now read-only.

Commit bdd8fe1

Browse files
committed
test(Integration): fix loading of URLs using env variables
1 parent f00e1d2 commit bdd8fe1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/integration/ApiTestCase.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,12 @@ public function getClientConfig($scope)
133133
'client_secret' => $_SERVER['COMMERCETOOLS_CLIENT_SECRET'],
134134
'project' => $_SERVER['COMMERCETOOLS_PROJECT']
135135
]);
136+
if (isset($_SERVER['COMMERCETOOLS_OAUTH_URL'])) {
137+
$config->setOauthUrl($_SERVER['COMMERCETOOLS_OAUTH_URL']);
138+
}
139+
if (isset($_SERVER['COMMERCETOOLS_API_URL'])) {
140+
$config->setOauthUrl($_SERVER['COMMERCETOOLS_API_URL']);
141+
}
136142
}
137143
// if (getenv('TEAMCITY_FORMATTER') == "true") {
138144
// $config->setMessageFormatter(new MessageFormatter(self::TEAMCITY_LF));

0 commit comments

Comments
 (0)