I’ve been writing more unit tests of late and have been running into some interesting issues when working with WordPress plugins.…