/wheels/tests/model/onmissingmethod/hasMany/findoneobject.cfc
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
- <cfcomponent extends="wheelsMapping.Test">
-
- <cffunction name="setup">
- <cfset loc.authorModel = model("author")>
- </cffunction>
-
- <cffunction name="test_findOneObject_valid">
- <cfset loc.author = loc.authorModel.findOne(where="firstName = 'Per'")>
- <cfset loc.post = loc.author.findOnePost(order="id")>
- <cfset assert('IsObject(loc.post) eq true')>
- </cffunction>
-
- </cfcomponent>