PageRenderTime 7ms CodeModel.GetById 2ms app.highlight 1ms RepoModel.GetById 2ms app.codeStats 0ms

/wheels/tests/model/properties/columnforproperty.cfc

http://cfwheels.googlecode.com/
ColdFusion CFScript | 18 lines | 14 code | 4 blank | 0 comment | 0 complexity | d05de5fa50207b2e25cf1da33545a277 MD5 | raw file
 1<cfcomponent extends="wheelsMapping.Test">
 2
 3	<cffunction name="test_columnForProperty_returns_column_name">
 4		<cfset loc.model = model("author").new() />
 5		<cfset assert('loc.model.columnForProperty("firstName") eq "firstname"') />
 6	</cffunction>
 7
 8	<cffunction name="test_columnForProperty_returns_false">
 9		<cfset loc.model = model("author").new() />
10		<cfset assert('loc.model.columnForProperty("myFavy") eq false') />
11	</cffunction>
12
13	<cffunction name="test_columnForProperty_dynamic_method_call">
14		<cfset loc.model = model("author").new() />
15		<cfset assert('loc.model.columnForFirstName() eq "firstname"') />
16	</cffunction>
17
18</cfcomponent>