Skip to content

Commit

Permalink
Unify test urls (#69)
Browse files Browse the repository at this point in the history
* Unify test urls

* Fixing tests
  • Loading branch information
Denis-Averin authored May 6, 2024
1 parent 89207d7 commit 5d8665e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/ConfigurationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ public function testConfigurationJsonEncode(): void
$config = new Configuration();
$config->setClientId('client id');
$config->setClientSecret('client secret');
$config->setHost('https://api-qa.aspose.cloud');
$config->setAuthUrl('https://api-qa.aspose.cloud/connect/token');
$config->setHost('http://localhost:47972');
$config->setAuthUrl('http://localhost:47972/connect/token');
$config->setAccessToken('access token');

$json = json_encode($config, JSON_PRETTY_PRINT);
Expand All @@ -27,8 +27,8 @@ public function testConfigurationJsonEncode(): void
'{
"ClientId": "client id",
"ClientSecret": "client secret",
"Host": "https:\\/\\/api-qa.aspose.cloud",
"AuthUrl": "https:\\/\\/api-qa.aspose.cloud\\/connect\\/token",
"Host": "http:\\/\\/localhost:47972",
"AuthUrl": "http:\\/\\/localhost:47972\\/connect\\/token",
"AccessToken": "access token",
"Debug": false
}',
Expand All @@ -41,8 +41,8 @@ public function testConfigurationFromJson(): void
$config = new Configuration();
$config->setClientId('client id');
$config->setClientSecret('client secret');
$config->setHost('https://api-qa.aspose.cloud');
$config->setAuthUrl('https://api-qa.aspose.cloud/connect/token');
$config->setHost('http://localhost:47972');
$config->setAuthUrl('http://localhost:47972/connect/token');
$config->setAccessToken('access token');
$json = json_encode($config, JSON_PRETTY_PRINT);

Expand Down

0 comments on commit 5d8665e

Please sign in to comment.