workflow::test::assert_user_actions (public)
workflow::test::assert_user_actions -workflow_id workflow_id \ -case_id case_id [ -user_id user_id ] \ [ -expect_user_actions expect_user_actions ]
Defined in packages/workflow/tcl/test/workflow-test-procs.tcl
Make assertions about user actions.
- Switches:
- -workflow_id (required)
- -case_id (required)
- -user_id (optional)
- -expect_user_actions (optional)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: if { $user_id eq "" } { set user_id [workflow::test::admin_owner_id] } set user_actions [workflow::test::action_short_names [workflow::case::get_available_actions -case_id $case_id -user_id $user_id]] if { ![aa_true "Available user actions for user $user_id should be: $expect_user_actions" [util_sets_equal_p $user_actions $expect_user_actions]] } { aa_log "Available user actions are: $user_actions" }XQL Not present: Generic, PostgreSQL, Oracle