/wheels/tests/model/_query/perpage.cfc

http://cfwheels.googlecode.com/ · ColdFusion CFScript · 12 lines · 9 code · 3 blank · 0 comment · 0 complexity · d76a1ebda97e79a202d0ab6bf9025dbd MD5 · raw file

  1. <cfcomponent extends="wheelsMapping.Test">
  2. <cffunction name="setup">
  3. <cfset loc.profileModel = model("profile")>
  4. </cffunction>
  5. <cffunction name="test_set_perpage">
  6. <cfset loc.profileModel.perPage(10)>
  7. <cfset assert('loc.profileModel.toQuery().perpage eq 10')>
  8. </cffunction>
  9. </cfcomponent>