aboutsummaryrefslogtreecommitdiffhomepage
path: root/Example
diff options
context:
space:
mode:
authorGravatar Oleksiy Ivanov <oleksiyi@google.com>2018-01-31 09:47:18 -0800
committerGravatar Oleksiy Ivanov <oleksiyi@google.com>2018-01-31 09:47:18 -0800
commit4e4c82b659b72e499c4c377400405327d233e556 (patch)
tree63e39308f1e767a78e0619c5acec0813b3f8157f /Example
parent799a808de6ae2f2af4b4b331a841d7b001abacea (diff)
Fix tests.
Diffstat (limited to 'Example')
-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.