From 6ea67f1a879bd848b4ea2c0fd2a3e10c25a80bd7 Mon Sep 17 00:00:00 2001 From: mohssen Date: Tue, 19 Mar 2024 14:19:46 -0700 Subject: [PATCH] Uses test credentials for AuthorizationCodeAuthProviderTests --- .../AuthorizationCodeAuthProviderTests.swift | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/examples/UberSDK/UberSDKTests/UberAuth/AuthorizationCodeAuthProviderTests.swift b/examples/UberSDK/UberSDKTests/UberAuth/AuthorizationCodeAuthProviderTests.swift index 6c64973..78dade3 100644 --- a/examples/UberSDK/UberSDKTests/UberAuth/AuthorizationCodeAuthProviderTests.swift +++ b/examples/UberSDK/UberSDKTests/UberAuth/AuthorizationCodeAuthProviderTests.swift @@ -8,9 +8,16 @@ import XCTest final class AuthorizationCodeAuthProviderTests: XCTestCase { + private let configurationProvider: ConfigurationProviding = ConfigurationProvidingMock( + clientID: "test_client_id", + redirectURI: "test://" + ) + func test_executeInAppLogin_createsAuthenticationSession() { - let provider = AuthorizationCodeAuthProvider() + let provider = AuthorizationCodeAuthProvider( + configurationProvider: configurationProvider + ) XCTAssertNil(provider.currentSession) @@ -42,7 +49,9 @@ final class AuthorizationCodeAuthProviderTests: XCTestCase { } func test_execute_existingSession_returnsExistingAuthSessionError() { - let provider = AuthorizationCodeAuthProvider() + let provider = AuthorizationCodeAuthProvider( + configurationProvider: configurationProvider + ) provider.execute( authDestination: .inApp,