-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Closed
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projecta: pluginsSupport for writing, building, and running plugin packagesSupport for writing, building, and running plugin packagesa: tests"flutter test", flutter_test, or one of our tests"flutter test", flutter_test, or one of our testsc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.team-frameworkOwned by Framework teamOwned by Framework teamtriaged-frameworkTriaged by Framework teamTriaged by Framework team
Description
I see that setMockMethodCallHandler is quite handy for MethodChannel, but found no equivalent for EventChannel. Here's the current way to mock and test EventChannel https://github.com/flutter/plugins/blob/master/packages/battery/test/battery_test.dart#L38
qknudsen, davidch32, shepeliev, FDuhen and fernando-s97
Metadata
Metadata
Assignees
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projecta: pluginsSupport for writing, building, and running plugin packagesSupport for writing, building, and running plugin packagesa: tests"flutter test", flutter_test, or one of our tests"flutter test", flutter_test, or one of our testsc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.team-frameworkOwned by Framework teamOwned by Framework teamtriaged-frameworkTriaged by Framework teamTriaged by Framework team