$args() Method
configBean.getKey('DebugMode');
configBean.getKey('OutgoingMail');//get a mock config bean
mockConfig = getMockBox().createEmptyMock("coldbox.system.beans.ConfigBean");
//mock the method with args
mockConfig.$("getKey").$args("debugmode").$results(true);
mockConfig.$("getKey").$args("OutgoingMail").$results('[email protected]');
//Then you can call and get the expected resultsLast updated
Was this helpful?