xowiki::test::require_test_folder (public)
xowiki::test::require_test_folder -instance instance \ -folder_name folder_name [ -user_id user_id ] \ [ -last_request last_request ] [ -form_name form_name ] [ -fresh ] \ [ -update update ] [ -extra_url_parameter extra_url_parameter ]
Defined in packages/xowiki/tcl/test/test-procs.tcl
Make sure a testfolder with the specified name exists in the top level directory of the specified instance. If this folder exists already, it is deleted are recreated empty.
- Switches:
- -instance
(required)- the path leading the instance, e.g. /xowiki
- -folder_name
(required)- the name of the folder, e.g. "testfolder"
- -user_id
(defaults to"0"
) (optional)- the user, under which the operations should be performed
- -last_request
(optional)- -form_name
(defaults to"folder.form"
) (optional)- -fresh
(boolean) (defaults to"false"
) (optional)- create a fresh folder, this means, delete a pre-existing folder first
- -update
(optional)- -extra_url_parameter
(optional)- Returns:
- folder_id
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- create_test_items, xowf, create_composite_test_item, create_folder_with_page, create_workflow_with_instance, create_form_with_form_instance, create_form_with_numeric, form_validate