projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Optimize "Customer has a referring customer" condition, RT#74452
[freeside.git]
/
rt
/
t
/
web
/
owner_disabled_group_19221.t
diff --git
a/rt/t/web/owner_disabled_group_19221.t
b/rt/t/web/owner_disabled_group_19221.t
index
d41decf
..
b71fc5b
100644
(file)
--- a/
rt/t/web/owner_disabled_group_19221.t
+++ b/
rt/t/web/owner_disabled_group_19221.t
@@
-122,7
+122,7
@@
diag "Check WithMember and WithoutMember recursively";
{
my $with = RT::Groups->new( RT->SystemUser );
$with->WithMember( PrincipalId => $user->PrincipalObj->Id, Recursively => 1 );
{
my $with = RT::Groups->new( RT->SystemUser );
$with->WithMember( PrincipalId => $user->PrincipalObj->Id, Recursively => 1 );
- $with->Limit
( FIELD => 'domain', OPERATOR => '=', VALUE => 'UserDefined' )
;
+ $with->Limit
ToUserDefinedGroups
;
is_deeply(
[map {$_->Name} @{$with->ItemsArrayRef}],
['Disabled Group','Supergroup'],
is_deeply(
[map {$_->Name} @{$with->ItemsArrayRef}],
['Disabled Group','Supergroup'],
@@
-131,7
+131,7
@@
diag "Check WithMember and WithoutMember recursively";
my $without = RT::Groups->new( RT->SystemUser );
$without->WithoutMember( PrincipalId => $user->PrincipalObj->Id, Recursively => 1 );
my $without = RT::Groups->new( RT->SystemUser );
$without->WithoutMember( PrincipalId => $user->PrincipalObj->Id, Recursively => 1 );
- $without->Limit
( FIELD => 'domain', OPERATOR => '=', VALUE => 'UserDefined' )
;
+ $without->Limit
ToUserDefinedGroups
;
is_deeply(
[map {$_->Name} @{$without->ItemsArrayRef}],
[],
is_deeply(
[map {$_->Name} @{$without->ItemsArrayRef}],
[],