We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee1da8a commit cf58301Copy full SHA for cf58301
1 file changed
test/stack_wallet_backup_method_channel_test.dart
@@ -9,13 +9,19 @@ void main() {
9
TestWidgetsFlutterBinding.ensureInitialized();
10
11
setUp(() {
12
- channel.setMockMethodCallHandler((MethodCall methodCall) async {
13
- return '42';
14
- });
+ TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger
+ .setMockMethodCallHandler(
+ channel,
15
+ (methodCall) async => '42',
16
+ );
17
});
18
19
tearDown(() {
- channel.setMockMethodCallHandler(null);
20
21
22
23
+ (methodCall) => null,
24
25
26
27
test('getPlatformVersion', () async {
0 commit comments