@@ -1110,8 +1110,10 @@ public function testGetSharedWithUserWithNode($storageStringId, $fileName1, $fil
11101110
11111111 $ user0 = $ this ->createMock (IUser::class);
11121112 $ user0 ->method ('getUID ' )->willReturn ('user0 ' );
1113+ $ user0 ->method ('getDisplayName ' )->willReturn ('user0 ' );
11131114 $ user1 = $ this ->createMock (IUser::class);
11141115 $ user1 ->method ('getUID ' )->willReturn ('user1 ' );
1116+ $ user0 ->method ('getDisplayName ' )->willReturn ('user0 ' );
11151117
11161118 $ this ->userManager ->method ('get ' )->willReturnMap ([
11171119 ['user0 ' , $ user0 ],
@@ -1640,8 +1642,10 @@ public function testDeleteFromSelfUser() {
16401642
16411643 $ user1 = $ this ->createMock (IUser::class);
16421644 $ user1 ->method ('getUID ' )->willReturn ('user1 ' );
1645+ $ user1 ->method ('getDisplayName ' )->willReturn ('user1 ' );
16431646 $ user2 = $ this ->createMock (IUser::class);
16441647 $ user2 ->method ('getUID ' )->willReturn ('user2 ' );
1648+ $ user2 ->method ('getDisplayName ' )->willReturn ('user2 ' );
16451649 $ this ->userManager ->method ('get ' )->will ($ this ->returnValueMap ([
16461650 ['user1 ' , $ user1 ],
16471651 ['user2 ' , $ user2 ],
@@ -1691,8 +1695,10 @@ public function testDeleteFromSelfUserNotRecipient() {
16911695
16921696 $ user1 = $ this ->createMock (IUser::class);
16931697 $ user1 ->method ('getUID ' )->willReturn ('user1 ' );
1698+ $ user1 ->method ('getDisplayName ' )->willReturn ('user1 ' );
16941699 $ user2 = $ this ->createMock (IUser::class);
16951700 $ user2 ->method ('getUID ' )->willReturn ('user2 ' );
1701+ $ user2 ->method ('getDisplayName ' )->willReturn ('user2 ' );
16961702 $ user3 = $ this ->createMock (IUser::class);
16971703 $ this ->userManager ->method ('get ' )->will ($ this ->returnValueMap ([
16981704 ['user1 ' , $ user1 ],
@@ -1755,6 +1761,7 @@ public function testUpdateUser() {
17551761 for ($ i = 0 ; $ i < 6 ; $ i ++) {
17561762 $ user = $ this ->createMock (IUser::class);
17571763 $ user ->method ('getUID ' )->willReturn ('user ' .$ i );
1764+ $ user ->method ('getDisplayName ' )->willReturn ('user ' . $ i );
17581765 $ users ['user ' .$ i ] = $ user ;
17591766 }
17601767
@@ -2105,8 +2112,10 @@ public function testMoveUserShare() {
21052112
21062113 $ user0 = $ this ->createMock (IUser::class);
21072114 $ user0 ->method ('getUID ' )->willReturn ('user0 ' );
2115+ $ user0 ->method ('getDisplayName ' )->willReturn ('user0 ' );
21082116 $ user1 = $ this ->createMock (IUser::class);
21092117 $ user1 ->method ('getUID ' )->willReturn ('user1 ' );
2118+ $ user1 ->method ('getDisplayName ' )->willReturn ('user1 ' );
21102119
21112120 $ this ->userManager ->method ('get ' )->will ($ this ->returnValueMap ([
21122121 ['user0 ' , $ user0 ],
0 commit comments