PageRenderTime 56ms CodeModel.GetById 17ms RepoModel.GetById 1ms 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
Possible License(s): Apache-2.0, CPL-1.0
  1. <cfcomponent extends="wheelsMapping.Test">
  2. <cffunction name="test_columnForProperty_returns_column_name">
  3. <cfset loc.model = model("author").new() />
  4. <cfset assert('loc.model.columnForProperty("firstName") eq "firstname"') />
  5. </cffunction>
  6. <cffunction name="test_columnForProperty_returns_false">
  7. <cfset loc.model = model("author").new() />
  8. <cfset assert('loc.model.columnForProperty("myFavy") eq false') />
  9. </cffunction>
  10. <cffunction name="test_columnForProperty_dynamic_method_call">
  11. <cfset loc.model = model("author").new() />
  12. <cfset assert('loc.model.columnForFirstName() eq "firstname"') />
  13. </cffunction>
  14. </cfcomponent>