Development

Debugging wrong WordPress calls in PHPUnit with WordPress’s ‘doing_it_wrong’

Recently I tried to debug some cryptic error messages that occurred at newly written unit tests. I’ve started to introduced some unit tests to the JSON API of a WordPress plugin. But the unit tests were failing with the quite meaningless message: The problem was: I had no idea was this meant. So after some …

Debugging wrong WordPress calls in PHPUnit with WordPress’s ‘doing_it_wrong’ Read More »