I am still going through all my plugins increasing the test coverage. I was wondering if there is a good way to alter/mock plugin settings.
As the behavior of some of my plugins can change quite a lot depending on the options, I would like to test different combinations. It would cool if I could just set those options within my phpunit tests, is this possible?
An alternative way would be to hand in needed options as a param to the functions which use them, but I’d like to avoid that.