How to disable twilio sending sms during phpunit testing?
ajcastro opened this issue · comments
Hi there!
How to disable twilio sending sms during phpunit testing?
Modify your routeNotificationsFor
method to return null if you're in the testing env.
@atymic that does not work because the TwilioChannel::getTo()
checks the user if it has phone_number and returns it causing it to still send the sms.
@atymic I sent a PR. Hope it helps. Thanks!