/wheels/tests/cache/Add.cfc

http://cfwheels.googlecode.com/ · ColdFusion CFScript · 16 lines · 12 code · 4 blank · 0 comment · 0 complexity · 160bea132b5de25f6b50eab2479b600b MD5 · raw file

  1. <cfcomponent extends="wheelsMapping.Test">
  2. <cfset cache = CreateObject("component", "wheels.Cache").init()>
  3. <cffunction name="setup">
  4. <cfset StructDelete(variables, "result")>
  5. <cfset StructDelete(variables, "results")>
  6. </cffunction>
  7. <cffunction name="testOneValue">
  8. <cfset cache.add(key="1", value="a")>
  9. <cfset result = cache.get(key="1")>
  10. <cfset assert("NOT IsBoolean(result) AND result IS 'a'")>
  11. </cffunction>
  12. </cfcomponent>