Skip to content

Commit 503614f

Browse files
author
Harry Terkelsen
authored
[cloud_firestore] Fix test that used FirebaseApp.channel (#1476)
* [cloud_firestore] Fix test that used FirebaseApp.channel * dartfmt * bump version
1 parent 8bf9b22 commit 503614f

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

packages/cloud_firestore/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.12.10+3
2+
3+
* Fixed test that used `FirebaseApp.channel`.
4+
15
## 0.12.10+2
26

37
* Fixed analyzer warnings about unused fields.

packages/cloud_firestore/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description: Flutter plugin for Cloud Firestore, a cloud-hosted, noSQL database
33
live synchronization and offline support on Android and iOS.
44
author: Flutter Team <[email protected]>
55
homepage: https://github.com/FirebaseExtended/flutterfire/tree/master/packages/cloud_firestore
6-
version: 0.12.10+2
6+
version: 0.12.10+3
77

88
flutter:
99
plugin:

packages/cloud_firestore/test/cloud_firestore_test.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,13 @@ void main() {
2828
"hasPendingWrites": false,
2929
"isFromCache": false,
3030
};
31+
const MethodChannel firebaseCoreChannel =
32+
MethodChannel('plugins.flutter.io/firebase_core');
33+
3134
setUp(() async {
3235
mockHandleId = 0;
3336
// Required for FirebaseApp.configure
34-
FirebaseApp.channel.setMockMethodCallHandler(
37+
firebaseCoreChannel.setMockMethodCallHandler(
3538
(MethodCall methodCall) async {},
3639
);
3740
app = await FirebaseApp.configure(

0 commit comments

Comments
 (0)