Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void function testSave() {
- // Give it some form data to use.
- FORM.name = "My Service";
- FORM.subdomain = "myservice";
- // Execute the event we want to test.
- local.event = execute("services.save");
- debug(local.event.getCollection());
- //Do your asserts below
- assertEquals("sorryapp.services", event.getValue("setnextevent",""), "Relocation to the list of services failed.");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement