@@ -46,12 +46,12 @@ class LoginForAdminTests: XCTestCase {
4646
4747 // MARK: - SFSDKAuthRequest loginAsAdmin Property
4848
49- func testGivenNewAuthRequest_whenCreated_thenloginAsAdminIsFalse ( ) {
49+ func testGivenNewAuthRequest_whenCreated_thenLoginAsAdminIsFalse ( ) {
5050 let request = SFSDKAuthRequest ( )
5151 XCTAssertFalse ( request. loginAsAdmin, " loginAsAdmin should default to false " )
5252 }
5353
54- func testGivenAuthRequest_whenloginAsAdminSet_thenUseBrowserAuthUnchanged ( ) {
54+ func testGivenAuthRequest_whenLoginAsAdminSet_thenUseBrowserAuthUnchanged ( ) {
5555 let request = SFSDKAuthRequest ( )
5656 XCTAssertFalse ( request. useBrowserAuth, " useBrowserAuth should default to false " )
5757
@@ -63,7 +63,7 @@ class LoginForAdminTests: XCTestCase {
6363
6464 // MARK: - SFSDKAuthSession Coordinator Initialization
6565
66- func testGivenloginAsAdmin_whenAuthSessionCreated_thenCoordinatorUsesBrowserAuth ( ) {
66+ func testGivenLoginAsAdmin_whenAuthSessionCreated_thenCoordinatorUsesBrowserAuth ( ) {
6767 let request = makeAuthRequest ( )
6868 request. loginAsAdmin = true
6969 request. useBrowserAuth = false
@@ -95,7 +95,7 @@ class LoginForAdminTests: XCTestCase {
9595
9696 // MARK: - SFOAuthCoordinator Auth Info Type
9797
98- func testGivenloginAsAdmin_whenAuthenticate_thenAuthInfoIsAdvancedBrowser ( ) {
98+ func testGivenLoginAsAdmin_whenAuthenticate_thenAuthInfoIsAdvancedBrowser ( ) {
9999 createTestAppIdentity ( )
100100
101101 let request = makeAuthRequest ( )
@@ -149,7 +149,7 @@ class LoginForAdminTests: XCTestCase {
149149
150150 // MARK: - Approval URL Web Server Flow
151151
152- func testGivenloginAsAdmin_whenGenerateApprovalUrl_thenUsesWebServerFlow ( ) {
152+ func testGivenLoginAsAdmin_whenGenerateApprovalUrl_thenUsesWebServerFlow ( ) {
153153 createTestAppIdentity ( )
154154 SalesforceManager . shared. useWebServerAuthentication = false
155155
@@ -165,7 +165,7 @@ class LoginForAdminTests: XCTestCase {
165165 " Approval URL should not use response_type=token when loginAsAdmin is true " )
166166 }
167167
168- func testGivenNologinAsAdmin_whenWebServerAuthDisabled_thenUsesUserAgentFlow ( ) {
168+ func testGivenNoLoginAsAdmin_whenWebServerAuthDisabled_thenUsesUserAgentFlow ( ) {
169169 createTestAppIdentity ( )
170170 SalesforceManager . shared. useWebServerAuthentication = false
171171 SalesforceManager . shared. useHybridAuthentication = false
@@ -183,7 +183,7 @@ class LoginForAdminTests: XCTestCase {
183183
184184 // MARK: - No Global State Mutation
185185
186- func testGivenloginAsAdmin_whenSet_thenGlobalWebServerAuthUnchanged ( ) {
186+ func testGivenLoginAsAdmin_whenSet_thenGlobalWebServerAuthUnchanged ( ) {
187187 let originalValue = SalesforceManager . shared. useWebServerAuthentication
188188
189189 let request = SFSDKAuthRequest ( )
@@ -193,7 +193,7 @@ class LoginForAdminTests: XCTestCase {
193193 " Setting loginAsAdmin should not change the global useWebServerAuthentication " )
194194 }
195195
196- func testGivenloginAsAdmin_whenAuthSessionCreated_thenGlobalStateUnchanged ( ) {
196+ func testGivenLoginAsAdmin_whenAuthSessionCreated_thenGlobalStateUnchanged ( ) {
197197 SalesforceManager . shared. useWebServerAuthentication = false
198198
199199 let request = makeAuthRequest ( )
@@ -209,7 +209,7 @@ class LoginForAdminTests: XCTestCase {
209209
210210 // MARK: - Cancel Flow: loginAsAdmin Clears on Cancel
211211
212- func testGivenloginAsAdmin_whenCancelled_thenloginAsAdminCleared ( ) {
212+ func testGivenLoginAsAdmin_whenCancelled_thenLoginAsAdminCleared ( ) {
213213 let request = makeAuthRequest ( )
214214 request. loginAsAdmin = true
215215
@@ -226,7 +226,7 @@ class LoginForAdminTests: XCTestCase {
226226 " Coordinator should not use browser auth after loginAsAdmin is cleared " )
227227 }
228228
229- func testGivenloginAsAdminCancelled_whenNewSession_thenAuthInfoMatchesGlobalSetting ( ) {
229+ func testGivenLoginAsAdminCancelled_whenNewSession_thenAuthInfoMatchesGlobalSetting ( ) {
230230 createTestAppIdentity ( )
231231 SalesforceManager . shared. useWebServerAuthentication = true
232232
@@ -270,7 +270,7 @@ class LoginForAdminTests: XCTestCase {
270270
271271 // MARK: - useBrowserAuth Not Modified
272272
273- func testGivenloginAsAdmin_whenFullLifecycle_thenUseBrowserAuthNeverMutated ( ) {
273+ func testGivenLoginAsAdmin_whenFullLifecycle_thenUseBrowserAuthNeverMutated ( ) {
274274 let request = makeAuthRequest ( )
275275 request. useBrowserAuth = false
276276
@@ -302,7 +302,7 @@ class LoginForAdminTests: XCTestCase {
302302
303303 // MARK: - SFUserAccountManager Cancel Browser Auth (loginAsAdmin path)
304304
305- func testGivenloginAsAdmin_whenBrowserAuthCancelled_thenloginAsAdminCleared ( ) {
305+ func testGivenLoginAsAdmin_whenBrowserAuthCancelled_thenLoginAsAdminCleared ( ) {
306306 let request = makeAuthRequest ( )
307307 request. loginAsAdmin = true
308308
@@ -317,7 +317,7 @@ class LoginForAdminTests: XCTestCase {
317317 XCTAssertFalse ( session. oauthRequest. loginAsAdmin, " loginAsAdmin should be cleared after cancel " )
318318 }
319319
320- func testGivenloginAsAdmin_whenBrowserAuthCancelled_thenUserCancelledNotificationNotPosted ( ) {
320+ func testGivenLoginAsAdmin_whenBrowserAuthCancelled_thenUserCancelledNotificationNotPosted ( ) {
321321 let request = makeAuthRequest ( )
322322 request. loginAsAdmin = true
323323
@@ -340,7 +340,7 @@ class LoginForAdminTests: XCTestCase {
340340 NotificationCenter . default. removeObserver ( observer)
341341 }
342342
343- func testGivenNologinAsAdmin_whenBrowserAuthCancelled_thenUserCancelledNotificationPosted ( ) {
343+ func testGivenNoLoginAsAdmin_whenBrowserAuthCancelled_thenUserCancelledNotificationPosted ( ) {
344344 let request = makeAuthRequest ( )
345345 request. loginAsAdmin = false
346346 request. useBrowserAuth = false
@@ -373,7 +373,7 @@ class LoginForAdminTests: XCTestCase {
373373 UserAccountManager . shared. authCancelledByUserHandlerBlock = nil
374374 }
375375
376- func testGivenloginAsAdmin_whenBrowserAuthCancelled_thenHandlerBlockNotCalled ( ) {
376+ func testGivenLoginAsAdmin_whenBrowserAuthCancelled_thenHandlerBlockNotCalled ( ) {
377377 let request = makeAuthRequest ( )
378378 request. loginAsAdmin = true
379379
@@ -444,7 +444,7 @@ class LoginForAdminTests: XCTestCase {
444444
445445 // MARK: - SFUserAccountManager loginViewControllerDidSelectLoginForAdmin
446446
447- func testGivenAuthSession_whenLoginForAdminSelected_thenloginAsAdminSetAndAuthRestarted ( ) {
447+ func testGivenAuthSession_whenLoginForAdminSelected_thenLoginAsAdminSetAndAuthRestarted ( ) {
448448 let uam = UserAccountManager . shared
449449
450450 // Get the test app's active window scene to obtain a real sceneId
@@ -611,7 +611,7 @@ class LoginForAdminTests: XCTestCase {
611611 window. rootViewController = nil
612612 }
613613
614- func test_authRequestRoundTripsloginAsAdminOverrides ( ) {
614+ func test_authRequestRoundTripsLoginAsAdminOverrides ( ) {
615615 // The LFA-scoped override fields on SFSDKAuthRequest must round-trip so that
616616 // restartAuthentication: can forward them through authenticateWithRequest:loginHint:
617617 // without mutating the request's permanent loginHost.
@@ -702,7 +702,7 @@ class LoginForAdminTests: XCTestCase {
702702 }
703703
704704 @available ( * , deprecated, message: " Exercises deprecated public API " )
705- func testGivenAuthSession_whenPublicLoginForAdminCalled_thenloginAsAdminSet ( ) {
705+ func testGivenAuthSession_whenPublicLoginForAdminCalled_thenLoginAsAdminSet ( ) {
706706 let uam = UserAccountManager . shared
707707
708708 guard let windowScene = UIApplication . shared. connectedScenes. first as? UIWindowScene else {
0 commit comments