@@ -464,10 +464,10 @@ - (void)testDefaultTokenEncryption {
464464- (void )testScopeQueryParamStringEmptyScopes {
465465 // Given
466466 SFOAuthCoordinator *coordinator = [[SFOAuthCoordinator alloc ] init ];
467- coordinator. scopes = [NSSet set ];
467+ NSArray < NSString *> * scopes = [NSArray array ];
468468
469469 // When
470- NSString *result = [coordinator scopeQueryParamString ];
470+ NSString *result = [coordinator scopeQueryParamString: scopes ];
471471
472472 // Then
473473 XCTAssertEqualObjects (result, @" " , @" Empty scopes should return empty string" );
@@ -476,10 +476,10 @@ - (void)testScopeQueryParamStringEmptyScopes {
476476- (void )testScopeQueryParamStringNilScopes {
477477 // Given
478478 SFOAuthCoordinator *coordinator = [[SFOAuthCoordinator alloc ] init ];
479- coordinator. scopes = nil ;
479+ NSArray < NSString *> * scopes = nil ;
480480
481481 // When
482- NSString *result = [coordinator scopeQueryParamString ];
482+ NSString *result = [coordinator scopeQueryParamString: scopes ];
483483
484484 // Then
485485 XCTAssertEqualObjects (result, @" " , @" Nil scopes should return empty string" );
@@ -488,10 +488,10 @@ - (void)testScopeQueryParamStringNilScopes {
488488- (void )testScopeQueryParamStringSingleScope {
489489 // Given
490490 SFOAuthCoordinator *coordinator = [[SFOAuthCoordinator alloc ] init ];
491- coordinator. scopes = [ NSSet setWithObject: @" web" ];
491+ NSArray < NSString *> * scopes = @[ @" web" ];
492492
493493 // When
494- NSString *result = [coordinator scopeQueryParamString ];
494+ NSString *result = [coordinator scopeQueryParamString: scopes ];
495495
496496 // Then
497497 // Should include refresh_token and the provided scope, URL encoded
@@ -501,10 +501,10 @@ - (void)testScopeQueryParamStringSingleScope {
501501- (void )testScopeQueryParamStringMultipleScopes {
502502 // Given
503503 SFOAuthCoordinator *coordinator = [[SFOAuthCoordinator alloc ] init ];
504- coordinator. scopes = [ NSSet setWithObjects: @" web" , @" api" , @" id" , nil ];
504+ NSArray < NSString *> * scopes = @[ @" web" , @" api" , @" id" ];
505505
506506 // When
507- NSString *result = [coordinator scopeQueryParamString ];
507+ NSString *result = [coordinator scopeQueryParamString: scopes ];
508508
509509 // Then
510510 // Should include refresh_token and all provided scopes, sorted and URL encoded
@@ -514,10 +514,10 @@ - (void)testScopeQueryParamStringMultipleScopes {
514514- (void )testScopeQueryParamStringWithRefreshTokenAlreadyPresent {
515515 // Given
516516 SFOAuthCoordinator *coordinator = [[SFOAuthCoordinator alloc ] init ];
517- coordinator. scopes = [ NSSet setWithObjects: @" web" , @" api" , @" refresh_token" , nil ];
518-
517+ NSArray < NSString *> * scopes = @[ @" web" , @" api" , @" refresh_token" ];
518+
519519 // When
520- NSString *result = [coordinator scopeQueryParamString ];
520+ NSString *result = [coordinator scopeQueryParamString: scopes ];
521521
522522 // Then
523523 // Should still work correctly even if refresh_token is already present
0 commit comments