/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
- <cfcomponent extends="wheelsMapping.Test">
-
- <cffunction name="test_columnForProperty_returns_column_name">
- <cfset loc.model = model("author").new() />
- <cfset assert('loc.model.columnForProperty("firstName") eq "firstname"') />
- </cffunction>
-
- <cffunction name="test_columnForProperty_returns_false">
- <cfset loc.model = model("author").new() />
- <cfset assert('loc.model.columnForProperty("myFavy") eq false') />
- </cffunction>
-
- <cffunction name="test_columnForProperty_dynamic_method_call">
- <cfset loc.model = model("author").new() />
- <cfset assert('loc.model.columnForFirstName() eq "firstname"') />
- </cffunction>
-
- </cfcomponent>