@@ -483,8 +483,8 @@ public function testGetGroupUsersDetails(): void {
483483 ->with ($ gid )
484484 ->willReturn ($ group );
485485 $ this ->groupManager ->expects ($ this ->any ())
486- ->method ('getUserGroups ' )
487- ->willReturn ([$ group ]);
486+ ->method ('getUserGroupIds ' )
487+ ->willReturn ([' ncg1 ' ]);
488488
489489 /** @var MockObject */
490490 $ this ->subAdminManager ->expects ($ this ->any ())
@@ -495,9 +495,9 @@ public function testGetGroupUsersDetails(): void {
495495 ->willReturn ([]);
496496
497497 $ this ->groupDisplayNameCache
498- ->method ('getDisplayName ' )
499- ->with ('ncg1 ' )
500- ->willReturn (' Group One ' );
498+ ->method ('getDisplayNames ' )
499+ ->with ([ 'ncg1 ' ] )
500+ ->willReturn ([ ' ncg1 ' => ' Group One '] );
501501
502502 $ result = $ this ->api ->getGroupUsersDetails ($ gid );
503503
@@ -538,8 +538,8 @@ public function testGetGroupUsersDetailsEncoded(): void {
538538 ->with ($ gid )
539539 ->willReturn ($ group );
540540 $ this ->groupManager ->expects ($ this ->any ())
541- ->method ('getUserGroups ' )
542- ->willReturn ([$ group ]);
541+ ->method ('getUserGroupIds ' )
542+ ->willReturn ([' Department A/B C/D ' ]);
543543
544544 /** @var MockObject */
545545 $ this ->subAdminManager ->expects ($ this ->any ())
@@ -550,9 +550,9 @@ public function testGetGroupUsersDetailsEncoded(): void {
550550 ->willReturn ([]);
551551
552552 $ this ->groupDisplayNameCache
553- ->method ('getDisplayName ' )
554- ->with ('Department A/B C/D ' )
555- ->willReturn ('Department A/B C/D-name ' );
553+ ->method ('getDisplayNames ' )
554+ ->with ([ 'Department A/B C/D ' ] )
555+ ->willReturn ([ 'Department A/B C/D ' => ' Department A/B C/D -name '] );
556556
557557 $ result = $ this ->api ->getGroupUsersDetails (urlencode ($ gid ));
558558
0 commit comments