2022-07-03 20:52:22 +03:00
|
|
|
import 'package:flutter/services.dart';
|
|
|
|
import 'package:flutter_test/flutter_test.dart';
|
|
|
|
|
|
|
|
void main() {
|
|
|
|
const MethodChannel channel = MethodChannel('yookassa_payments_flutter');
|
|
|
|
|
|
|
|
TestWidgetsFlutterBinding.ensureInitialized();
|
|
|
|
|
|
|
|
setUp(() {
|
2023-09-29 11:29:08 +03:00
|
|
|
TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger
|
2023-06-05 17:59:47 +03:00
|
|
|
.setMockMethodCallHandler(channel, (methodInvocation) => null);
|
2022-07-03 20:52:22 +03:00
|
|
|
});
|
|
|
|
|
|
|
|
tearDown(() {
|
2023-09-29 11:29:08 +03:00
|
|
|
TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger
|
2023-06-05 17:59:47 +03:00
|
|
|
.setMockMethodCallHandler(channel, (methodInvocation) => null);
|
2022-07-03 20:52:22 +03:00
|
|
|
});
|
|
|
|
}
|