/wheels/tests/cache/Add.cfc
ColdFusion CFScript | 16 lines | 12 code | 4 blank | 0 comment | 0 complexity | 160bea132b5de25f6b50eab2479b600b MD5 | raw file
Possible License(s): Apache-2.0, CPL-1.0
- <cfcomponent extends="wheelsMapping.Test">
-
- <cfset cache = CreateObject("component", "wheels.Cache").init()>
-
- <cffunction name="setup">
- <cfset StructDelete(variables, "result")>
- <cfset StructDelete(variables, "results")>
- </cffunction>
-
- <cffunction name="testOneValue">
- <cfset cache.add(key="1", value="a")>
- <cfset result = cache.get(key="1")>
- <cfset assert("NOT IsBoolean(result) AND result IS 'a'")>
- </cffunction>
-
- </cfcomponent>