@@ -576,6 +576,7 @@ public function dataGetShare() {
576576 'share_type ' => \OCP \Share::SHARE_TYPE_USER ,
577577 'share_with ' => 'userId ' ,
578578 'share_with_displayname ' => 'userDisplay ' ,
579+ 'share_with_displayname_unique ' => 'userId@example.com ' ,
579580 'uid_owner ' => 'initiatorId ' ,
580581 'displayname_owner ' => 'initiatorDisplay ' ,
581582 'item_type ' => 'file ' ,
@@ -773,6 +774,7 @@ public function testGetShare(\OCP\Share\IShare $share, array $result) {
773774 $ user = $ this ->getMockBuilder (IUser::class)->getMock ();
774775 $ user ->method ('getUID ' )->willReturn ('userId ' );
775776 $ user ->method ('getDisplayName ' )->willReturn ('userDisplay ' );
777+ $ user ->method ('getEMailAddress ' )->willReturn ('userId@example.com ' );
776778
777779 $ group = $ this ->getMockBuilder ('OCP\IGroup ' )->getMock ();
778780 $ group ->method ('getGID ' )->willReturn ('groupId ' );
@@ -3427,6 +3429,8 @@ public function dataFormatShare() {
34273429 $ initiator ->method ('getDisplayName ' )->willReturn ('initiatorDN ' );
34283430 $ recipient = $ this ->getMockBuilder (IUser::class)->getMock ();
34293431 $ recipient ->method ('getDisplayName ' )->willReturn ('recipientDN ' );
3432+ $ recipient ->method ('getEmailAddress ' )->willReturn ('recipient ' );
3433+
34303434
34313435 $ result = [];
34323436
@@ -3466,6 +3470,7 @@ public function dataFormatShare() {
34663470 'file_target ' => 'myTarget ' ,
34673471 'share_with ' => 'recipient ' ,
34683472 'share_with_displayname ' => 'recipient ' ,
3473+ 'share_with_displayname_unique ' => 'recipient ' ,
34693474 'note ' => 'personal note ' ,
34703475 'label ' => null ,
34713476 'mail_send ' => 0 ,
@@ -3502,6 +3507,7 @@ public function dataFormatShare() {
35023507 'file_target ' => 'myTarget ' ,
35033508 'share_with ' => 'recipient ' ,
35043509 'share_with_displayname ' => 'recipientDN ' ,
3510+ 'share_with_displayname_unique ' => 'recipient ' ,
35053511 'mail_send ' => 0 ,
35063512 'mimetype ' => 'myMimeType ' ,
35073513 'has_preview ' => false ,
@@ -3552,6 +3558,7 @@ public function dataFormatShare() {
35523558 'file_target ' => 'myTarget ' ,
35533559 'share_with ' => 'recipient ' ,
35543560 'share_with_displayname ' => 'recipient ' ,
3561+ 'share_with_displayname_unique ' => 'recipient ' ,
35553562 'mail_send ' => 0 ,
35563563 'mimetype ' => 'myMimeType ' ,
35573564 'has_preview ' => false ,
@@ -3598,6 +3605,7 @@ public function dataFormatShare() {
35983605 'file_target ' => 'myTarget ' ,
35993606 'share_with ' => 'recipient ' ,
36003607 'share_with_displayname ' => 'recipient ' ,
3608+ 'share_with_displayname_unique ' => 'recipient ' ,
36013609 'mail_send ' => 0 ,
36023610 'mimetype ' => 'myMimeType ' ,
36033611 'has_preview ' => false ,
@@ -4145,6 +4153,7 @@ public function dataFormatShare() {
41454153 'file_target ' => 'myTarget ' ,
41464154 'share_with ' => 'recipient ' ,
41474155 'share_with_displayname ' => 'recipient ' ,
4156+ 'share_with_displayname_unique ' => 'recipient ' ,
41484157 'mail_send ' => 0 ,
41494158 'mimetype ' => 'mimeWithPreview ' ,
41504159 'has_preview ' => true ,
0 commit comments