From 5d8665e69a725326c6efec7b43db1f4c8c9a3d3c Mon Sep 17 00:00:00 2001 From: Denis Averin <59285247+Denis-Averin@users.noreply.github.com> Date: Mon, 6 May 2024 16:10:08 +0700 Subject: [PATCH] Unify test urls (#69) * Unify test urls * Fixing tests --- tests/ConfigurationTest.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/ConfigurationTest.php b/tests/ConfigurationTest.php index 65027d4..fce49ab 100644 --- a/tests/ConfigurationTest.php +++ b/tests/ConfigurationTest.php @@ -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); @@ -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 }', @@ -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);