Skip to content

Instantly share code, notes, and snippets.

@bittersweetryan
Created January 16, 2012 13:58
Show Gist options
  • Save bittersweetryan/1621002 to your computer and use it in GitHub Desktop.
Save bittersweetryan/1621002 to your computer and use it in GitHub Desktop.
Blog Post - Ordered Test Decorator
<cffunction name="testIsQuery" returntype="void" output="false" order="1">
<cfset var myQry = buildQueryObj()>
<!--- Check that a variable is a query --->
<cfset assertEquals(IsQuery(myQry),"___")>
</cffunction>
<cffunction name="testGettingQueryRecordCount" returntype="void" output="false" order="2">
<cfset var myQry = buildQueryObj()>
<!--- The total number of records in a returned query can be accessed using the recordcount --->
<cfset assertEquals(myQry.recordCount,"___")>
</cffunction>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment