- assigned_to: nobody --> skorpiun
There are two scenarios on how you can test a CT. First
is if the custom tag(s) are inside the CF servers
customer tag directory...
--------------------------------------
<cfsavecontent variable="myOutput">
<cf_parentTag someAttribute="someValue">
<cf_childTag someAttribute="someValue" />
<cf_childTag someAttribute="someValue" />
<cf_childTag someAttribute="someValue" />
</cf_parentTag>
</cfsavecontent>
<cfset assertTrue("Message", YesNoFormat( myOutput
CONTAINS "Hello World" ) )/>
<cfset assertTrue("Message", YesNoFormat( myOutput
CONTAINS "Some other text" ) )/>
--------------------------------------
The other scenario is if the tag(s) are in a folder
somewhere off the web root...
--------------------------------------
<cfimport taglib="/someFolder/tagsFolder" prefix="myLib" />
<cfsavecontent variable="myOutput">
<myLib:parentTag someAttribute="someValue">
<myLib:childTag someAttribute="someValue" />
<myLib:childTag someAttribute="someValue" />
<myLib:childTag someAttribute="someValue" />
</myLib:parentTag>
</cfsavecontent>
<cfset assertTrue("Message", YesNoFormat( myOutput
CONTAINS "Hello World" ) )/>
<cfset assertTrue("Message", YesNoFormat( myOutput
CONTAINS "Some other text" ) )/>
--------------------------------------