Skip to content

Commit

Permalink
[in_app_review_platform_interface] update deprecated use of `setMockM…
Browse files Browse the repository at this point in the history
…ethodCallHandler`.
  • Loading branch information
britannio committed Sep 16, 2023
1 parent 8954869 commit 96c4ec9
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ void main() {
log.clear();
});

channel.setMockMethodCallHandler((call) async {
Future<Object?> mockMethodCallHandler(MethodCall call) async {
log.add(call);

switch (call.method) {
Expand All @@ -32,7 +32,10 @@ void main() {
assert(false);
return null;
}
});
}

TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger
.setMockMethodCallHandler(channel, mockMethodCallHandler);

group('isAvailable', () {
test(
Expand Down

0 comments on commit 96c4ec9

Please sign in to comment.