_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):
%3 aa_false aa_false (public) aa_log aa_log (public) aa_log_result aa_log_result (public) aa_true aa_true (public) acs_user::approve acs_user::approve (public) _acs-tcl__acs_user__ban_approve _acs-tcl__acs_user__ban_approve _acs-tcl__acs_user__ban_approve->aa_false _acs-tcl__acs_user__ban_approve->aa_log _acs-tcl__acs_user__ban_approve->aa_log_result _acs-tcl__acs_user__ban_approve->aa_true _acs-tcl__acs_user__ban_approve->acs_user::approve

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
[ hide source ] | [ make this the default ]
Show another procedure: