Changeset 1743

Show
Ignore:
Timestamp:
08/29/08 01:35:06 (4 months ago)
Author:
lmajano
Message:

Ticket #566
Test Controller missing new arguments in its setnextevent and setnextroute methods. Added them and added the new assertions.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • coldbox/trunk/system/testcontroller.cfc

    r1533 r1743  
    2020                <cfargument name="addToken"                     hint="Wether to add the tokens or not. Default is false" type="boolean" required="false" default="false"        > 
    2121                <cfargument name="persist"                      hint="What request collection keys to persist in the relocation" required="false" type="string" default=""> 
     22                <cfargument name="varStruct"            required="false" type="struct" hint="A structure key-value pairs to persist."> 
    2223                <!--- ************************************************************* ---> 
    2324                <!--- Nothing In here to validate Unit Tests ---> 
     
    2930                <!--- Save also the persist collection keys ---> 
    3031                <cfset getRequestService().getContext().setValue("persistKeys","#arguments.persist#")> 
     32                <!--- Save also the persist collection keys ---> 
     33                <cfset getRequestService().getContext().setValue("persistVarStruct","#arguments.varStruct#")> 
    3134        </cffunction> 
    3235         
     
    3639                <cfargument name="route"                        hint="The route to relocate to, do not prepend the baseURL or /." type="string" required="yes" > 
    3740                <cfargument name="persist"                      hint="What request collection keys to persist in the relocation" required="false" type="string" default=""> 
     41                <cfargument name="varStruct"            required="false" type="struct" hint="A structure key-value pairs to persist."> 
    3842                <!--- ************************************************************* ---> 
    3943                <!--- Save the route ---> 
     
    4246                <!--- Save also the persist collection keys ---> 
    4347                <cfset getRequestService().getContext().setValue("persistKeys","#arguments.persist#")> 
     48                <!--- Save also the persist collection keys ---> 
     49                <cfset getRequestService().getContext().setValue("persistVarStruct","#arguments.varStruct#")> 
    4450        </cffunction> 
    4551 

Copyright 2006 ColdBox Framework by Luis Majano