[Rt-commit] r18702 - in rt/3.999/trunk/t: web
clkao at bestpractical.com
clkao at bestpractical.com
Thu Mar 5 02:32:35 EST 2009
Author: clkao
Date: Thu Mar 5 02:32:35 2009
New Revision: 18702
Modified:
rt/3.999/trunk/t/api/group.t
rt/3.999/trunk/t/web/dashboards-groups.t
Log:
adjust test for has_member_recursively.
Modified: rt/3.999/trunk/t/api/group.t
==============================================================================
--- rt/3.999/trunk/t/api/group.t (original)
+++ rt/3.999/trunk/t/api/group.t Thu Mar 5 02:32:35 2009
@@ -62,7 +62,7 @@
# g3 now has 1, g2->{1, g1->{1,2,3}}
is($group_3->has_member($principal_2), undef, "group 3 doesn't have member 2");
-ok($group_3->has_member_recursively($principal_2), "group 3 has member 2 recursively");
+ok($group_3->has_member($principal_2, recursively => 1), "group 3 has member 2 recursively");
ok($ng->has_member($principal_2) , "group ".$ng->id." has member 2");
my ($delid , $delmsg) =$ng->delete_member($principal_2->id);
isnt ($delid ,0, "Sucessfully deleted it-".$delid."-".$delmsg);
@@ -78,10 +78,10 @@
# g3 now has 1, g2->{1, g1->{1, 3}}
ok(!$ng->has_member($principal_2) , "group ".$ng->id." no longer has member 2");
-is($group_3->has_member_recursively($principal_2), undef, "group 3 doesn't have member 2");
-is($group_2->has_member_recursively($principal_2), undef, "group 2 doesn't have member 2");
+is($group_3->has_member($principal_2, recursively => 1), undef, "group 3 doesn't have member 2");
+is($group_2->has_member($principal_2, recursively => 1), undef, "group 2 doesn't have member 2");
is($ng->has_member($principal_2), undef, "group 1 doesn't have member 2");;
-is($group_3->has_member_recursively($principal_2), undef, "group 3 has member 2 recursively");
+is($group_3->has_member($principal_2, recursively => 1), undef, "group 3 has member 2 recursively");
# }}}
Modified: rt/3.999/trunk/t/web/dashboards-groups.t
==============================================================================
--- rt/3.999/trunk/t/web/dashboards-groups.t (original)
+++ rt/3.999/trunk/t/web/dashboards-groups.t Thu Mar 5 02:32:35 2009
@@ -47,13 +47,13 @@
ok($outer_group->has_member($inner_group->principal_id), "outer has inner");
ok(!$outer_group->has_member($user_obj->principal_id), "outer doesn't have user directly");
-ok($outer_group->has_member_recursively($inner_group->principal_id), "outer has inner recursively");
-ok($outer_group->has_member_recursively($user_obj->principal_id), "outer has user recursively");
+ok($outer_group->has_member($inner_group->principal_id, recursively => 1), "outer has inner recursively");
+ok($outer_group->has_member($user_obj->principal_id, recursively => 1), "outer has user recursively");
ok(!$inner_group->has_member($outer_group->principal_id), "inner doesn't have outer");
ok($inner_group->has_member($user_obj->principal_id), "inner has user");
-ok(!$inner_group->has_member_recursively($outer_group->principal_id), "inner doesn't have outer, even recursively");
-ok($inner_group->has_member_recursively($user_obj->principal_id), "inner has user recursively");
+ok(!$inner_group->has_member($outer_group->principal_id, recursively => 1), "inner doesn't have outer, even recursively");
+ok($inner_group->has_member($user_obj->principal_id, recursively =>1), "inner has user recursively");
# }}}
ok $m->login(customer => 'customer'), "logged in";
More information about the Rt-commit
mailing list