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 (optional, defaults to "0")
the user, under which the operations should be performed
-last_request (optional)
-form_name (optional, defaults to "folder.form")
-fresh (optional, boolean, defaults to "false")
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):
%3 test_create_composite_test_item create_composite_test_item (test xowf) xowiki::test::require_test_folder xowiki::test::require_test_folder test_create_composite_test_item->xowiki::test::require_test_folder test_create_folder_with_page create_folder_with_page (test xowf) test_create_folder_with_page->xowiki::test::require_test_folder test_create_form_with_form_instance create_form_with_form_instance (test xowiki) test_create_form_with_form_instance->xowiki::test::require_test_folder test_create_form_with_numeric create_form_with_numeric (test xowiki) test_create_form_with_numeric->xowiki::test::require_test_folder test_create_test_items create_test_items (test ) test_create_test_items->xowiki::test::require_test_folder _ _ (public) xowiki::test::require_test_folder->_ aa_log aa_log (public) xowiki::test::require_test_folder->aa_log acs::test::get_url_from_location acs::test::get_url_from_location (public) xowiki::test::require_test_folder->acs::test::get_url_from_location acs::test::http acs::test::http (public) xowiki::test::require_test_folder->acs::test::http acs::test::reply_has_status_code acs::test::reply_has_status_code (public) xowiki::test::require_test_folder->acs::test::reply_has_status_code

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
[ show source ]
Show another procedure: