This repository was archived by the owner on Oct 6, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +3
-18
lines changed
Expand file tree Collapse file tree 4 files changed +3
-18
lines changed Original file line number Diff line number Diff line change 201201
202202 < cfif IsInstanceOf (loc .object , " LiquidDrop" )>
203203
204- < cfif ! loc .object .hasKey (loc .next_part_name )>
205- < cfreturn " " >
206- < / cfif >
207-
208204 < cfset loc .object = loc .object .invokeDrop (loc .next_part_name )>
209205
210206 < cfelseif StructKeyExists (loc .object , application .LiquidConfig .LIQUID_HAS_PROPERTY_METHOD ) AND IsCustomFunction (loc .next_part_name )>
Original file line number Diff line number Diff line change @@ -62,10 +62,7 @@ Your drop can either implement the methods sans any parameters or implement the
6262
6363 < cffunction name = " hasKey" hint = " Returns true if the drop supports the given method" >
6464 < cfargument name = " name" type = " string" required = " true" >
65- < cfif ! ListFindNoCase (variables .PROTECTED_METHODS , arguments .name ) && StructKeyExists (this , arguments .name )>
66- < cfreturn true >
67- < / cfif >
68- < cfreturn false >
65+ < cfreturn StructKeyExists (this , arguments .name )>
6966 < / cffunction >
7067
7168 < cffunction name = " toLiquid" hint = " return this drop instance" >
Original file line number Diff line number Diff line change 1414
1515<cfelse >
1616
17- <cfset test = createObject (" component" , " cfml-liquid.tests.tests.OutputTest " ) >
18- <cfset test .runTest (" test" , " test_filter_with_default_arguments " ) >
17+ <cfset test = createObject (" component" , " cfml-liquid.tests.tests.DropTest " ) >
18+ <cfset test .runTest (" test" , " TEST_CONTEXT_DROP " ) >
1919
2020</cfif >
2121
Original file line number Diff line number Diff line change 8080
8181 < / cffunction >
8282
83- < cffunction name = " test_haskey_should_return_false_for_protected_methods" >
84-
85- < cfset loc .ProductDrop = createObject (" component" , " classes.ProductDrop" )>
86- < cfset loc .e = loc .ProductDrop .hasKey (" beforeMethod" )>
87- < cfset assert (" loc.e eq false" )>
88-
89- < / cffunction >
90-
9183 < cffunction name = " test_haskey_should_return_true_if_method_exists" >
9284
9385 < cfset loc .ProductDrop = createObject (" component" , " classes.ProductDrop" )>
You can’t perform that action at this time.
0 commit comments