PageRenderTime 2047ms CodeModel.GetById 17ms RepoModel.GetById 10ms app.codeStats 0ms

/wheels/tests/model/onmissingmethod/hasMany/findoneobject.cfc

http://cfwheels.googlecode.com/
ColdFusion CFScript | 13 lines | 10 code | 3 blank | 0 comment | 0 complexity | c8aaf9e4a04793634ef76b7df2c49f8f MD5 | raw file
Possible License(s): Apache-2.0, CPL-1.0
  1. <cfcomponent extends="wheelsMapping.Test">
  2. <cffunction name="setup">
  3. <cfset loc.authorModel = model("author")>
  4. </cffunction>
  5. <cffunction name="test_findOneObject_valid">
  6. <cfset loc.author = loc.authorModel.findOne(where="firstName = 'Per'")>
  7. <cfset loc.post = loc.author.findOnePost(order="id")>
  8. <cfset assert('IsObject(loc.post) eq true')>
  9. </cffunction>
  10. </cfcomponent>