OneSignal-Flutter-SDK icon indicating copy to clipboard operation
OneSignal-Flutter-SDK copied to clipboard

[question]: How to mock OneSignal

Open MarcelGalster opened this issue 1 year ago • 1 comments
trafficstars

How can we help?

Hi, I want to write tests for my OneSingal integration and need to mock OneSignal to do this. How can I do this as OneSignal only has static members?

Code of Conduct

  • [x] I agree to follow this project's Code of Conduct

MarcelGalster avatar Apr 29 '24 10:04 MarcelGalster

Hi @MarcelGalster, it is not easy to mock OneSignal for tests as it does only have static members.

What types of behaviors are you trying to test?

nan-li avatar May 08 '24 21:05 nan-li