@@ -116,6 +116,7 @@ private function ensureUserDoesNotExist()
116
116
$ all_users_group ->write ();
117
117
assert (!in_array ($ USER ->uid , $ all_users_group ->getAttribute ("memberuid " )));
118
118
}
119
+ $ REDIS ->removeCacheArray ("sorted_users " , "" , $ USER ->uid );
119
120
}
120
121
121
122
private function ensureOrgGroupDoesNotExist ()
@@ -126,6 +127,7 @@ private function ensureOrgGroupDoesNotExist()
126
127
$ org_group ->delete ();
127
128
assert (!$ org_group ->exists ());
128
129
}
130
+ $ REDIS ->removeCacheArray ("sorted_orgs " , "" , $ org_group ->gid );
129
131
}
130
132
131
133
private function ensureUserNotInPIGroup (UnityGroup $ pi_group )
@@ -135,6 +137,7 @@ private function ensureUserNotInPIGroup(UnityGroup $pi_group)
135
137
$ pi_group ->removeUser ($ USER );
136
138
assert (!$ pi_group ->userExists ($ USER ));
137
139
}
140
+ $ REDIS ->removeCacheArray ($ pi_group ->gid , "members " , $ USER ->uid );
138
141
}
139
142
140
143
private function ensurePIGroupDoesNotExist ()
@@ -144,6 +147,7 @@ private function ensurePIGroupDoesNotExist()
144
147
$ LDAP ->getPIGroupEntry ($ USER ->getPIGroup ()->gid )->delete ();
145
148
assert (!$ USER ->getPIGroup ()->exists ());
146
149
}
150
+ $ REDIS ->removeCacheArray ("sorted_groups " , "" , $ gid );
147
151
}
148
152
149
153
public function testCreateUserByJoinGoupByPI ()
0 commit comments