_acs-lang__locale__test_system_package_setting (private)

 _acs-lang__locale__test_system_package_setting

Defined in packages/acs-lang/tcl/test/acs-lang-test-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) ad_generate_random_string ad_generate_random_string (public) ad_try ad_try (public) _acs-lang__locale__test_system_package_setting _acs-lang__locale__test_system_package_setting _acs-lang__locale__test_system_package_setting->aa_equals _acs-lang__locale__test_system_package_setting->aa_log _acs-lang__locale__test_system_package_setting->aa_log_result _acs-lang__locale__test_system_package_setting->ad_generate_random_string _acs-lang__locale__test_system_package_setting->ad_try

Testcases:
No testcase defined.
Source code:
        
        set _aa_export {}
        set body_count 1
        foreach testcase_body {{
    set use_package_level_locales_p_org [parameter::get  -parameter UsePackageLevelLocalesP  -package_id [apm_package_id_from_key "acs-lang"]]

    parameter::set_value  -parameter UsePackageLevelLocalesP  -package_id [apm_package_id_from_key "acs-lang"] -value 1


    # There's no foreign key constraint on the locales column, so this
    # should work
    set locale_to_set [ad_generate_random_string]

    set retrieved_locale {}

    ad_try {
        # Let's pick a random unmounted package to test with
        set package_id [apm_package_id_from_key "acs-kernel"]

        set org_setting [lang::system::site_wide_locale]

        lang::system::set_locale -package_id $package_id $locale_to_set

        set retrieved_locale [lang::system::locale -package_id $package_id]

    } on error {errorMsg} {
        # rethrow error
        error $errorMsg $::errorInfo
    } finally {
        parameter::set_value  -parameter UsePackageLevelLocalesP  -package_id [apm_package_id_from_key "acs-lang"]  -value $use_package_level_locales_p_org
    }

    aa_equals "Retrieved system locale ('$retrieved_locale') equals the one we just set ('$locale_to_set')"  $locale_to_set  $retrieved_locale
}} {
          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" "locale__test_system_package_setting (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: