_acs-authentication__auth_confirm_email (private)

 _acs-authentication__auth_confirm_email

Defined in packages/acs-authentication/tcl/test/acs-authentication-procs.tcl

Partial Call Graph (max 5 caller/called nodes):
%3 aa_equals aa_equals (public) aa_log aa_log (public) aa_log_result aa_log_result (public) aa_run_with_teardown aa_run_with_teardown (public) acs_user::flush_cache acs_user::flush_cache (public) _acs-authentication__auth_confirm_email _acs-authentication__auth_confirm_email _acs-authentication__auth_confirm_email->aa_equals _acs-authentication__auth_confirm_email->aa_log _acs-authentication__auth_confirm_email->aa_log_result _acs-authentication__auth_confirm_email->aa_run_with_teardown _acs-authentication__auth_confirm_email->acs_user::flush_cache

Testcases:
No testcase defined.
Source code:
        
        set _aa_export {}
        set body_count 1
        foreach testcase_body {{
    set user_id [ad_conn user_id]

    aa_run_with_teardown  -rollback  -test_code {
            db_dml update { update users set email_verified_p = 'f' where user_id = :user_id }
            acs_user::flush_cache -user_id $user_id

            aa_equals "email should be not verified" [acs_user::get_element -user_id $user_id -element email_verified_p] "f"

            auth::set_email_verified -user_id $user_id

            aa_equals "email should be verified" [acs_user::get_element -user_id $user_id -element email_verified_p] "t"
            acs_user::flush_cache -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" "auth_confirm_email (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: