_acs-content-repository__content_keyword (private)

 _acs-content-repository__content_keyword

Defined in packages/acs-content-repository/tcl/test/content-keyword-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) aa_run_with_teardown aa_run_with_teardown (public) aa_true aa_true (public) _acs-content-repository__content_keyword _acs-content-repository__content_keyword _acs-content-repository__content_keyword->aa_equals _acs-content-repository__content_keyword->aa_log _acs-content-repository__content_keyword->aa_log_result _acs-content-repository__content_keyword->aa_run_with_teardown _acs-content-repository__content_keyword->aa_true

Testcases:
No testcase defined.
Source code:
        
        set _aa_export {}
        set body_count 1
        foreach testcase_body {{
        aa_run_with_teardown  -rollback  -test_code {

                # create a keyword
                set assigned_keyword_id [db_nextval "acs_object_id_seq"]
                set keyword_id [content::keyword::new  -heading "--test_keyword"  -description "--test_description"  -keyword_id $assigned_keyword_id]
                # check that keyword_id, heading, description
                # are set correctly
                aa_true "Keyword_id assigned"  {$assigned_keyword_id == $keyword_id}
                aa_equals "Keyword heading set"  [content::keyword::get_heading -keyword_id $keyword_id"--test_keyword" 
                aa_equals "Keyword description set"  [content::keyword::get_description -keyword_id $keyword_id"--test_description" 
                # delete it
                content::keyword::delete -keyword_id $keyword_id
                aa_equals "Keyword deleted" [db_string confirm_delete "" -default """"
            }
    }} {
          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" "content_keyword (body $body_count): Error during execution: $msg, stack trace: \n$::errorInfo"
          }
          incr body_count
        }
XQL Not present:
PostgreSQL, Oracle
Generic XQL file:
<fullquery name="_acs-content-repository__content_keyword.confirm_delete">
    <querytext>
      select keyword_id from cr_keywords where keyword_id=:keyword_id
    </querytext>
</fullquery>
packages/acs-content-repository/tcl/test/content-keyword-test-procs.xql

[ hide source ] | [ make this the default ]
Show another procedure: