Unit tests – Dealing with dependencies
This might be seen as a corollary of Testing hooks callback. The issue: I want to test a class which creates a new instance of a My_Notice class defined outside the plugin (let’s call it the “Main Plugin”). My unit test knows nothing about My_Notice because it’s defined in a third party library (another plugin, … Read more