Index: openacs-4/packages/acs-subsite/tcl/test/acs-subsite-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-subsite/tcl/test/acs-subsite-procs.tcl,v diff -u -r1.12.2.8 -r1.12.2.9 --- openacs-4/packages/acs-subsite/tcl/test/acs-subsite-procs.tcl 16 Apr 2019 08:31:48 -0000 1.12.2.8 +++ openacs-4/packages/acs-subsite/tcl/test/acs-subsite-procs.tcl 19 Jul 2019 15:42:57 -0000 1.12.2.9 @@ -122,6 +122,7 @@ -cats smoke \ -procs { group::add_member + group::member_p group::new relation_add } acs_subsite_check_composite_group { @@ -151,6 +152,12 @@ group::add_member -group_id $level_2_group -user_id $user_1_id -rel_type membership_rel group::add_member -group_id $level_2_group -user_id $user_1_id -rel_type admin_rel + # check that user_1 is a direct member of level_2_group via the tcl api + aa_true "User 1 is a direct member of Level 2 Group" [group::member_p -user_id $user_1_id -group_id $level_2_group] + + # check that user_1 is a indirect member of level_1_group via the tcl api + aa_true "User 1 is an indirect member of Level 1 Group" [group::member_p -user_id $user_1_id -group_id $level_1_group -cascade] + # check that user_1 is a member of level_1_group but not admin aa_true "User 1 is a member of Level 1 Group" [db_0or1row member_p { SELECT 1 @@ -189,7 +196,6 @@ AND member_id = :user_2_id AND rel_type = 'admin_rel' }] - } }