-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Closed
Labels
a.cookbookRelates to a cookbook recipe or guideRelates to a cookbook recipe or guidedev.pluginRelates to Flutter pluginsRelates to Flutter pluginse1-hoursEffort: < 8 hrsEffort: < 8 hrsfix.code-sampleNeeds new or updated code sampleNeeds new or updated code samplep2-mediumNecessary but not urgent concern. Resolve when possible.Necessary but not urgent concern. Resolve when possible.
Description
https://flutter.dev/docs/cookbook/persistence/reading-writing-files#testing demonstrates mocking the method channel for path provider, but not all path provider implementations use a method channel (notably, path_provider_linux; see discussion)
Instead it should be showing mocking out the platform provider, as is done here, since that's the recommended way of mocking out plugins that are using the new platform interface structure.
Metadata
Metadata
Assignees
Labels
a.cookbookRelates to a cookbook recipe or guideRelates to a cookbook recipe or guidedev.pluginRelates to Flutter pluginsRelates to Flutter pluginse1-hoursEffort: < 8 hrsEffort: < 8 hrsfix.code-sampleNeeds new or updated code sampleNeeds new or updated code samplep2-mediumNecessary but not urgent concern. Resolve when possible.Necessary but not urgent concern. Resolve when possible.