I need to be able to test a plugin which needs some information from
the event. Namely the current module.
I can't for the life of me work out how I can test this plugin, and
mock the current event without actually running the event as I just
want to unit test the plugin and this one function.
I would try to create an instance of “coldbox.system.web.Context.RequestContext” using MockBox and mock the result you need to test. But, I don’t think ColdBox will check the type of object you pass, so, you actually can probably get away with just using a stub"
Andrew hit it on the spot. You now have targeted tests for each part of ColdBox: plugin, model, handler, etc. In the what’s new you can find more information.