I am attempting to test some complex plugins. One of those plugins has a task that makes a REST call as part of its processing. I am trying to figure out a way that i can replace the live REST client class with a test version that returns a mocked result object.
Is this possible in TestKit? It doesn’t look like it can be done. is this true?
If it is true, how is one supposed to isolate the task class and apply more traditional mock and unit proceedures on it?