You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: packages/path_provider/path_provider/README.md
+1-8Lines changed: 1 addition & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,14 +23,7 @@ Please see the example app of this plugin for a full example.
23
23
24
24
### Usage in tests
25
25
26
-
`path_provider` now uses a `PlatformInterface`, meaning that not all platforms share the a single `PlatformChannel`-based implementation.
26
+
`path_provider` now uses a `PlatformInterface`, meaning that not all platforms share the a single `PlatformChannel`-based implementation.
27
27
With that change, tests should be updated to mock `PathProviderPlatform` rather than `PlatformChannel`.
28
28
29
29
See this `path_provider`[test](https://github.com/flutter/plugins/blob/master/packages/path_provider/path_provider/test/path_provider_test.dart) for an example.
30
-
31
-
You will also have to temporarily add the following line to the setup of your test.
32
-
```dart
33
-
disablePathProviderPlatformOverride = true;
34
-
```
35
-
36
-
See this [issue](https://github.com/flutter/flutter/issues/52267), for more details on why this is needed.
0 commit comments