Skip to content

add sendMessage to the FCMProvider protocol so it can be mocked in tests#13

Merged
MihaelIsaev merged 1 commit intoMihaelIsaev:masterfrom
h2glab:master
Nov 27, 2019
Merged

add sendMessage to the FCMProvider protocol so it can be mocked in tests#13
MihaelIsaev merged 1 commit intoMihaelIsaev:masterfrom
h2glab:master

Conversation

@FredericRuaudel
Copy link
Copy Markdown
Contributor

Hello !

This PR declare the sendMessage in the FCMProvider protocol so we can mock it by using the config.prefer mechanism of Vapor 3 like this:

services.register(FCMMock.self)
config.prefer(FCMMock.self, for: FCMProvider.self)

@m-maillot
Copy link
Copy Markdown

I vote for this PR :)

@MihaelIsaev MihaelIsaev merged commit f3a4b8a into MihaelIsaev:master Nov 27, 2019
@FredericRuaudel
Copy link
Copy Markdown
Contributor Author

Thanks for the quick merge! 🙏

@MihaelIsaev
Copy link
Copy Markdown
Owner

@FredericRuaudel you're welcome! Thanks for the useful pull request! 🚀

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.

3 participants