PageRenderTime 425ms CodeModel.GetById 201ms app.highlight 3ms RepoModel.GetById 219ms app.codeStats 0ms

/wheels/tests/cache/Clear.cfc

http://cfwheels.googlecode.com/
ColdFusion CFScript | 17 lines | 13 code | 4 blank | 0 comment | 0 complexity | 9039899dd0f1435393550cafd7d19320 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="testAll">
11		<cfset cache.add(key="1", value="a")>
12		<cfset cache.clear()>
13		<cfset result = cache.count()>
14		<cfset assert("result IS 0")>
15	</cffunction>
16
17</cfcomponent>