Closed FredericRuaudel closed 4 years ago
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:
sendMessage
FCMProvider
config.prefer
services.register(FCMMock.self) config.prefer(FCMMock.self, for: FCMProvider.self)
I vote for this PR :)
Thanks for the quick merge! 🙏
@FredericRuaudel you're welcome! Thanks for the useful pull request! 🚀
Hello !
This PR declare the
sendMessage
in theFCMProvider
protocol so we can mock it by using theconfig.prefer
mechanism of Vapor 3 like this: