setUpPlatformInterfaceMocks function

void setUpPlatformInterfaceMocks()

Sets up common platform interface mocks / fakes

Implementation

void setUpPlatformInterfaceMocks() {
  const localNotifChannel =
      MethodChannel('dexterous.com/flutter/local_notifications');
  TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger
      .setMockMethodCallHandler(localNotifChannel, (methodCall) async {
    if (methodCall.method == 'initialize') {
      return true;
    }
    return null;
  });

  PathProviderPlatform.instance = FakePathProviderPlatform();
}