PageRenderTime 20ms CodeModel.GetById 17ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/wheels/tests/cache/Remove.cfc

http://cfwheels.googlecode.com/
ColdFusion CFScript | 17 lines | 13 code | 4 blank | 0 comment | 0 complexity | 8340642a9ed8069a074d635d12b003c2 MD5 | raw file
 1<cfcomponent extends="wheelsMapping.Test">
 2
 3	<cfset cache = CreateObject("component", "wheels.Cache").init()>
 4
 5	<cffunction name="setup">
 6		<cfset StructDelete(variables, "result")>
 7		<cfset StructDelete(variables, "results")>
 8	</cffunction>
 9
10	<cffunction name="testOneValue">
11		<cfset cache.add(key="1", value="a")>
12		<cfset cache.remove(key="1")>
13		<cfset result = cache.get(key="1")>
14		<cfset assert("IsBoolean(result) AND NOT result")>
15	</cffunction>
16
17</cfcomponent>