aboutsummaryrefslogtreecommitdiffhomepage
path: root/Example/Messaging/Tests/FIRMessagingServiceTest.m
diff options
context:
space:
mode:
Diffstat (limited to 'Example/Messaging/Tests/FIRMessagingServiceTest.m')
-rw-r--r--Example/Messaging/Tests/FIRMessagingServiceTest.m11
1 files changed, 7 insertions, 4 deletions
diff --git a/Example/Messaging/Tests/FIRMessagingServiceTest.m b/Example/Messaging/Tests/FIRMessagingServiceTest.m
index c2b0853..c8d61c2 100644
--- a/Example/Messaging/Tests/FIRMessagingServiceTest.m
+++ b/Example/Messaging/Tests/FIRMessagingServiceTest.m
@@ -198,7 +198,8 @@
NSString *topicNameWithPrefix = [FIRMessagingPubSub addPrefixToTopic:topicName];
messaging.pubsub = mockPubSub;
messaging.defaultFcmToken = @"fake-default-token";
- OCMExpect([messaging.pubsub subscribeToTopic:[OCMArg isEqual:topicNameWithPrefix]]);
+ OCMExpect([messaging.pubsub subscribeToTopic:[OCMArg isEqual:topicNameWithPrefix]
+ handler:[OCMArg any]]);
[messaging subscribeToTopic:topicName];
OCMVerifyAll(mockPubSub);
// Need to swap back since it's a singleton and hence will live beyond the scope of this test.
@@ -213,7 +214,7 @@
NSString *topicName = @"/topics/topicWithoutPrefix";
messaging.pubsub = mockPubSub;
messaging.defaultFcmToken = @"fake-default-token";
- OCMExpect([messaging.pubsub subscribeToTopic:[OCMArg isEqual:topicName]]);
+ OCMExpect([messaging.pubsub subscribeToTopic:[OCMArg isEqual:topicName] handler:[OCMArg any]]);
[messaging subscribeToTopic:topicName];
OCMVerifyAll(mockPubSub);
// Need to swap back since it's a singleton and hence will live beyond the scope of this test.
@@ -229,7 +230,8 @@
NSString *topicNameWithPrefix = [FIRMessagingPubSub addPrefixToTopic:topicName];
messaging.pubsub = mockPubSub;
messaging.defaultFcmToken = @"fake-default-token";
- OCMExpect([messaging.pubsub unsubscribeFromTopic:[OCMArg isEqual:topicNameWithPrefix]]);
+ OCMExpect([messaging.pubsub unsubscribeFromTopic:[OCMArg isEqual:topicNameWithPrefix]
+ handler:[OCMArg any]]);
[messaging unsubscribeFromTopic:topicName];
OCMVerifyAll(mockPubSub);
// Need to swap back since it's a singleton and hence will live beyond the scope of this test.
@@ -244,7 +246,8 @@
NSString *topicName = @"/topics/topicWithPrefix";
messaging.pubsub = mockPubSub;
messaging.defaultFcmToken = @"fake-default-token";
- OCMExpect([messaging.pubsub unsubscribeFromTopic:[OCMArg isEqual:topicName]]);
+ OCMExpect([messaging.pubsub unsubscribeFromTopic:[OCMArg isEqual:topicName]
+ handler:[OCMArg any]]);
[messaging unsubscribeFromTopic:topicName];
OCMVerifyAll(mockPubSub);
// Need to swap back since it's a singleton and hence will live beyond the scope of this test.