This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @mxunit:decorators mxunit.framework.decorators.TransactionRollbackDecorator | |
**/ | |
component extends="coldbox.system.testing.BaseModelTest" model="model.SomeModel" { | |
void function setup() { | |
super.setup(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Fired when the module is registered and activated. | |
*/ | |
function onLoad(){ | |
//get the current external locations | |
var modulesExternalLocation = controller.getSetting('modulesExternalLocation'); | |
//if the contentbox-modules isn't already part of the setting, add it and register/activate all modules | |
if (!arrayFind(modulesExternalLocation,"/contentbox-modules")) { | |
//get the module service | |
var ms = controller.getModuleService(); |
NewerOlder