Skip to content

Commit 3a81447

Browse files
set more valid format of notification sample (#8174)
1 parent 59ea6b8 commit 3a81447

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

FirebaseMessaging/Tests/UnitTests/FIRMessagingAnalyticsTest.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,7 @@ - (void)testNoConversionTracking {
430430
- (void)testLogMessage {
431431
NSDictionary *notification = @{
432432
@"google.c.a.e" : @"1",
433+
@"aps" : @{@"alert" : @"to check the reporting format"},
433434
};
434435
[FIRMessagingAnalytics logMessage:notification toAnalytics:nil];
435436
OCMVerify([self.logClassMock logEvent:OCMOCK_ANY withNotification:notification toAnalytics:nil]);
@@ -439,6 +440,7 @@ - (void)testLogMessage {
439440
- (void)testLogOpenNotification {
440441
NSDictionary *notification = @{
441442
@"google.c.a.e" : @"1",
443+
@"aps" : @{@"alert" : @"to check the reporting format"},
442444
};
443445
[FIRMessagingAnalytics logOpenNotification:notification toAnalytics:nil];
444446

0 commit comments

Comments
 (0)