mirrored_repositories/awesome-flutter/examples/flutterfire/packages/firebase_in_app_messaging
import 'package:flutter_test/flutter_test.dart';
import 'package:e2e/e2e.dart';
import 'package:firebase_in_app_messaging/firebase_in_app_messaging.dart';

void main() {
  E2EWidgetsFlutterBinding.ensureInitialized();
  late FirebaseInAppMessaging fiam;

  setUp(() {
    fiam = FirebaseInAppMessaging();
  });

  testWidgets('triggerEvent', (WidgetTester tester) async {
    expect(fiam.triggerEvent('someEvent'), completes);
  });

  testWidgets('logging', (WidgetTester tester) async {
    expect(fiam.setMessagesSuppressed(true), completes);
    expect(fiam.setAutomaticDataCollectionEnabled(true), completes);
  });
}
