@@ -78,7 +78,7 @@ class AnalyticsTests: XCTestCase {
78
78
XCTAssertNil ( client. pendingUserProperties, " No user properties should have been set yet. " )
79
79
80
80
// When updating the user properties
81
- client. updateUserProperties ( AnalyticsEvent . UserProperties ( allChatsActiveFilter: nil , ftueUseCaseSelection: . PersonalMessaging, numFavouriteRooms: 4 , numSpaces: 5 ) )
81
+ client. updateUserProperties ( AnalyticsEvent . UserProperties ( allChatsActiveFilter: nil , ftueUseCaseSelection: . PersonalMessaging, numFavouriteRooms: 4 , numSpaces: 5 , recoveryState : nil , verificationState : nil ) )
82
82
83
83
// Then the properties should be cached
84
84
XCTAssertNotNil ( client. pendingUserProperties, " The user properties should be cached. " )
@@ -90,15 +90,15 @@ class AnalyticsTests: XCTestCase {
90
90
func testMergingUserProperties( ) {
91
91
// Given a client with a cached use case user properties
92
92
let client = PostHogAnalyticsClient ( )
93
- client. updateUserProperties ( AnalyticsEvent . UserProperties ( allChatsActiveFilter: nil , ftueUseCaseSelection: . PersonalMessaging, numFavouriteRooms: nil , numSpaces: nil ) )
93
+ client. updateUserProperties ( AnalyticsEvent . UserProperties ( allChatsActiveFilter: nil , ftueUseCaseSelection: . PersonalMessaging, numFavouriteRooms: nil , numSpaces: nil , recoveryState : nil , verificationState : nil ) )
94
94
95
95
XCTAssertNotNil ( client. pendingUserProperties, " The user properties should be cached. " )
96
96
XCTAssertEqual ( client. pendingUserProperties? . ftueUseCaseSelection, . PersonalMessaging, " The use case selection should match. " )
97
97
XCTAssertNil ( client. pendingUserProperties? . numFavouriteRooms, " The number of favorite rooms should not be set. " )
98
98
XCTAssertNil ( client. pendingUserProperties? . numSpaces, " The number of spaces should not be set. " )
99
99
100
100
// When updating the number of spaces
101
- client. updateUserProperties ( AnalyticsEvent . UserProperties ( allChatsActiveFilter: nil , ftueUseCaseSelection: nil , numFavouriteRooms: 4 , numSpaces: 5 ) )
101
+ client. updateUserProperties ( AnalyticsEvent . UserProperties ( allChatsActiveFilter: nil , ftueUseCaseSelection: nil , numFavouriteRooms: 4 , numSpaces: 5 , recoveryState : nil , verificationState : nil ) )
102
102
103
103
// Then the new properties should be updated and the existing properties should remain unchanged
104
104
XCTAssertNotNil ( client. pendingUserProperties, " The user properties should be cached. " )
@@ -107,7 +107,7 @@ class AnalyticsTests: XCTestCase {
107
107
XCTAssertEqual ( client. pendingUserProperties? . numSpaces, 5 , " The number of spaces should have been updated. " )
108
108
109
109
// When updating the number of spaces
110
- client. updateUserProperties ( AnalyticsEvent . UserProperties ( allChatsActiveFilter: . Favourites, ftueUseCaseSelection: nil , numFavouriteRooms: nil , numSpaces: nil ) )
110
+ client. updateUserProperties ( AnalyticsEvent . UserProperties ( allChatsActiveFilter: . Favourites, ftueUseCaseSelection: nil , numFavouriteRooms: nil , numSpaces: nil , recoveryState : nil , verificationState : nil ) )
111
111
112
112
// Then the new properties should be updated and the existing properties should remain unchanged
113
113
XCTAssertNotNil ( client. pendingUserProperties, " The user properties should be cached. " )
@@ -120,7 +120,7 @@ class AnalyticsTests: XCTestCase {
120
120
func testSendingUserProperties( ) {
121
121
// Given a client with user properties set
122
122
let client = PostHogAnalyticsClient ( )
123
- client. updateUserProperties ( AnalyticsEvent . UserProperties ( allChatsActiveFilter: nil , ftueUseCaseSelection: . PersonalMessaging, numFavouriteRooms: nil , numSpaces: nil ) )
123
+ client. updateUserProperties ( AnalyticsEvent . UserProperties ( allChatsActiveFilter: nil , ftueUseCaseSelection: . PersonalMessaging, numFavouriteRooms: nil , numSpaces: nil , recoveryState : nil , verificationState : nil ) )
124
124
client. start ( )
125
125
126
126
XCTAssertNotNil ( client. pendingUserProperties, " The user properties should be cached. " )
@@ -137,7 +137,7 @@ class AnalyticsTests: XCTestCase {
137
137
func testSendingUserPropertiesWithIdentify( ) {
138
138
// Given a client with user properties set
139
139
let client = PostHogAnalyticsClient ( )
140
- client. updateUserProperties ( AnalyticsEvent . UserProperties ( allChatsActiveFilter: nil , ftueUseCaseSelection: . PersonalMessaging, numFavouriteRooms: nil , numSpaces: nil ) )
140
+ client. updateUserProperties ( AnalyticsEvent . UserProperties ( allChatsActiveFilter: nil , ftueUseCaseSelection: . PersonalMessaging, numFavouriteRooms: nil , numSpaces: nil , recoveryState : nil , verificationState : nil ) )
141
141
client. start ( )
142
142
143
143
XCTAssertNotNil ( client. pendingUserProperties, " The user properties should be cached. " )
0 commit comments