Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add opportunity to use map in widget tests #281

Merged

Conversation

ManoyloK
Copy link
Contributor

Hey! I needed to use the map in widget tests. But as it uses platform views those are not working properly during widget tests. So I made some classes visible and added a method to provide fake MethodChannelMaplibreGl to MapLibreGlPlatform.

Usage

class FakeMethodChannelMaplibreGl implements MethodChannelMaplibreGl {
...
}

 MapLibreGlPlatform.instance = FakeMethodChannelMaplibreGl();

@JulianBissekkou
Copy link
Collaborator

Thanks! @ManoyloK

@JulianBissekkou JulianBissekkou enabled auto-merge (squash) August 25, 2023 13:10
@JulianBissekkou JulianBissekkou merged commit 06a2cf5 into maplibre:main Aug 25, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants