_acs-tcl__acs_user__ban_approve (private)
_acs-tcl__acs_user__ban_approve
Defined in packages/acs-tcl/tcl/test/acs-tcl-test-procs.tcl
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: set _aa_export {} set body_count 1 foreach testcase_body {{ # Retrieve a registered user set user_id [db_string get_registered_id {select max(user_id) from registered_users}] # Ban and approve the user and check aa_true "User is registered" [acs_user::registered_user_p -user_id $user_id] acs_user::ban -user_id $user_id aa_false "User banned" [acs_user::registered_user_p -user_id $user_id] acs_user::approve -user_id $user_id aa_true "User approved" [acs_user::registered_user_p -user_id $user_id] }} { aa_log "Running testcase body $body_count" set ::__aa_test_indent [info level] set catch_val [catch $testcase_body msg] if {$catch_val != 0 && $catch_val != 2} { aa_log_result "fail" "acs_user__ban_approve (body $body_count): Error during execution: $msg, stack trace: \n$::errorInfo" } incr body_count }XQL Not present: Generic, PostgreSQL, Oracle