Skip to content

Commit

Permalink
Fixed old test
Browse files Browse the repository at this point in the history
  • Loading branch information
nsingh-branch committed Jun 28, 2024
1 parent 6545298 commit cb78ae8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Branch-TestBed/Branch-SDK-Tests/BranchClassTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -243,19 +243,20 @@ - (void)testSetDMAParamsForEEA {

- (void)testSetConsumerProtectionAttributionLevel {
// Set to Reduced and check
[Branch setConsumerProtectionAttributionLevel:BranchAttributionLevelReduced];
Branch *branch = [Branch getInstance];
[branch setConsumerProtectionAttributionLevel:BranchAttributionLevelReduced];
XCTAssertEqual([BNCPreferenceHelper sharedInstance].attributionLevel, BranchAttributionLevelReduced);

// Set to Minimal and check
[Branch setConsumerProtectionAttributionLevel:BranchAttributionLevelMinimal];
[branch setConsumerProtectionAttributionLevel:BranchAttributionLevelMinimal];
XCTAssertEqual([BNCPreferenceHelper sharedInstance].attributionLevel, BranchAttributionLevelMinimal);

// Set to None and check
[Branch setConsumerProtectionAttributionLevel:BranchAttributionLevelNone];
[branch setConsumerProtectionAttributionLevel:BranchAttributionLevelNone];
XCTAssertEqual([BNCPreferenceHelper sharedInstance].attributionLevel, BranchAttributionLevelNone);

// Set to Full and check
[Branch setConsumerProtectionAttributionLevel:BranchAttributionLevelFull];
[branch setConsumerProtectionAttributionLevel:BranchAttributionLevelFull];
XCTAssertEqual([BNCPreferenceHelper sharedInstance].attributionLevel, BranchAttributionLevelFull);

}
Expand Down

0 comments on commit cb78ae8

Please sign in to comment.