Is it possible to test broadcast notifications?
I'm currently using reverb to broadcast notifications, everything is working fine and the notifications are coming through. I'd like to run some tests to ensure this is always the case but I can't seem to get
assertNotified
to return true
while using toBroadcast()
. If I switch it back to send()
the notification test passes (which a few other small changes - eg. removing notification from notify()
function.)
I'm triggering the notification like this:
Testing notification like this:
Test currently fails with:
Thanks.0 Replies