PageRenderTime 25ms CodeModel.GetById 22ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/wheels/tests/model/callbacks/custom.cfc

http://cfwheels.googlecode.com/
ColdFusion CFScript | 11 lines | 9 code | 2 blank | 0 comment | 0 complexity | 5f47b101097bb26267b5551c239b42a1 MD5 | raw file
 1<cfcomponent extends="wheelsMapping.Test">
 2
 3	<cffunction name="test_existing_object">
 4		<cfset loc.args.type = "myCustomCallBack">
 5		<cfset model("tag").$registerCallback(type=loc.args.type, methods="methodOne")>
 6		<cfset loc.r = model("tag").$callbacks(argumentCollection=loc.args)>
 7		<cfset assert('IsArray(loc.r)')>
 8		<cfset assert('ArrayLen(loc.r) eq 1')>
 9	</cffunction>
10
11</cfcomponent>