From 99204326fa935be547d3a30ae60dd31c0e4c8eb6 Mon Sep 17 00:00:00 2001 From: Kevin J Gao <32936811+gaokevin1@users.noreply.github.com> Date: Sun, 29 Dec 2024 20:59:41 -0800 Subject: [PATCH] Chore: Fixed GHA (#33) * RELEASE * added changes --- src/tests/Auth/PasswordTest.php | 2 +- src/tests/Auth/SSOTest.php | 1 + src/tests/Management/AuditTest.php | 4 ++-- src/tests/Management/UserTest.php | 4 ++-- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/tests/Auth/PasswordTest.php b/src/tests/Auth/PasswordTest.php index 504796b..f279101 100644 --- a/src/tests/Auth/PasswordTest.php +++ b/src/tests/Auth/PasswordTest.php @@ -17,7 +17,7 @@ protected function setUp(): void { $this->apiMock = $this->createMock(API::class); $this->password = new Password($this->apiMock); - EndpointsV1::setBaseUrl($_ENV['DESCOPE_PROJECT_ID']); + EndpointsV1::setBaseUrl('descope_project_id'); } public function testSignUp() diff --git a/src/tests/Auth/SSOTest.php b/src/tests/Auth/SSOTest.php index 0f549ff..b2ca915 100644 --- a/src/tests/Auth/SSOTest.php +++ b/src/tests/Auth/SSOTest.php @@ -18,6 +18,7 @@ protected function setUp(): void { $this->apiMock = $this->createMock(API::class); $this->sso = new SSO($this->apiMock); + EndpointsV1::setBaseUrl('descope_project_id'); } public function testSSOSignIn(): void diff --git a/src/tests/Management/AuditTest.php b/src/tests/Management/AuditTest.php index 75b310c..1b5f9c1 100644 --- a/src/tests/Management/AuditTest.php +++ b/src/tests/Management/AuditTest.php @@ -12,8 +12,8 @@ class AuditTest extends TestCase protected function setUp(): void { $config = [ - 'projectId' => 'P2OkfVnJi5Ht7mpCqHjx17nV5epH', - 'managementKey' => 'K2o2rLwk3N3QI7kyJcRUmULKXqB7mKzpY7Dk6Hl24IXRM25YcYDYPFMKCO4SmUTDJJluxlu', + 'projectId' => 'descope_project_id', + 'managementKey' => 'descope_management_key', ]; $this->descopeSDK = new DescopeSDK($config); diff --git a/src/tests/Management/UserTest.php b/src/tests/Management/UserTest.php index 19ecf65..c3eb1eb 100644 --- a/src/tests/Management/UserTest.php +++ b/src/tests/Management/UserTest.php @@ -26,8 +26,8 @@ class UserTest extends TestCase protected function setUp(): void { $config = [ - 'projectId' => 'YOUR_PROJECT_ID', - 'managementKey' => 'YOUR_MANAGEMENT_KEY', + 'projectId' => 'descope_project_id', + 'managementKey' => 'descope_management_key', ]; $this->descopeSDK = new DescopeSDK($config);