I’ve got some tests which use MXUnit’s Mock() and am trying to figure out how I can replace the same code using TestBox/MockBox
I’m forking the Xindi CMS project - you can see the tests here: https://github.com/simonbingham/xindi/blob/master/_tests/model/content/TestContentService.cfc
function testgetNavigationByPage(){
var Page = mock().getleftvalue().returns(1).getrightvalue().returns(20);
var pages = CUT.getNavigation( page=Page );
assertTrue( isQuery( pages ) );
}
Is there a drop in way to replicate that with MockBox?
I’ve never done a lot with mocking before… off to RTFM for MockBox…
Jim