lukeraymonddowning / honey

A spam prevention package for Laravel, providing honeypot techniques, ip blocking and beautifully simple Recaptcha integration. Stop spam. Use Honey.
MIT License
398 stars 23 forks source link

Add `enable()` method to Honey #37

Closed daanklijn closed 3 years ago

daanklijn commented 3 years ago

Hi there! 👋 During testing I found it useful to enable Honey inside my testing logic. To do so I added an enable method, which is simply the opposite of the disable method. In my case this worked seamlessly with my tests. So I think, it might be handy for others as well.

lukeraymonddowning commented 3 years ago

Beautiful, thank you 🔥 Any chance of a unit test to support?

daanklijn commented 3 years ago

Yeah sure! I Just added a small test to the ManualDisableTest.