_acs-subsite__acs_subsite_relation_procs (private)
_acs-subsite__acs_subsite_relation_procs
Defined in packages/acs-subsite/tcl/test/acs-subsite-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 {{ aa_run_with_teardown -rollback -test_code { # # Create a couple of objects # set object_id_1 [package_instantiate_object acs_object] set object_id_2 [package_instantiate_object acs_object] set object_ids [list $object_id_1 $object_id_2] # # Add a new relation # set rel_type relationship set rel_id [relation_add $rel_type $object_id_1 $object_id_2] aa_equals "Check new relation $rel_id" [relation::get_id -object_id_one $object_id_1 -object_id_two $object_id_2 -rel_type $rel_type] $rel_id # # Check object one # aa_equals "Check object_one in the relation $rel_id" [relation::get_object_one -rel_type $rel_type -object_id_two $object_id_2] $object_id_1 # # Check object two # aa_equals "Check object_two in the relation $rel_id" [relation::get_object_two -rel_type $rel_type -object_id_one $object_id_1] $object_id_2 # # Check both # aa_equals "Check object_one in the relation $rel_id" [relation::get_objects -rel_type $rel_type -object_id_two $object_id_2] $object_id_1 aa_equals "Check object_two in the relation $rel_id" [relation::get_objects -rel_type $rel_type -object_id_one $object_id_1] $object_id_2 # # Delete # relation_remove $rel_id aa_equals "Check relation deletion $rel_id" [relation::get_id -object_id_one $object_id_1 -object_id_two $object_id_2 -rel_type $rel_type] "" } }} { 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_subsite_relation_procs (body $body_count): Error during execution: $msg, stack trace: \n$::errorInfo" } incr body_count }XQL Not present: Generic, PostgreSQL, Oracle