Skip to content

Commit 970414b

Browse files
committed
add comment
1 parent 310595c commit 970414b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/functional/PiRemoveUserTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ public function testRemoveUser()
2424
$memberUIDs = $piGroup->getGroupMemberUIDs();
2525
// the 0th member of the PI group is the PI
2626
$this->assertGreaterThan(1, count($memberUIDs));
27+
// the ordering of the uids in getGroupMemberUIDs is different each time
28+
// use a linear search to find a user who is not the PI
2729
$memberToDelete = null;
2830
foreach ($memberUIDs as $uid) {
2931
if ($uid != $piUid) {

0 commit comments

Comments
 (0)