From d11fb91a892f558edcae09142941e469bb13d35a Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 8 May 2026 16:42:45 +0200 Subject: [PATCH] test: adjust tests redacted password field Signed-off-by: Robin Appelman --- .../tests/Controller/ShareAPIControllerTest.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/apps/files_sharing/tests/Controller/ShareAPIControllerTest.php b/apps/files_sharing/tests/Controller/ShareAPIControllerTest.php index 65186f0b571..f1a6806a118 100644 --- a/apps/files_sharing/tests/Controller/ShareAPIControllerTest.php +++ b/apps/files_sharing/tests/Controller/ShareAPIControllerTest.php @@ -796,8 +796,8 @@ class ShareAPIControllerTest extends TestCase { $expected = [ 'id' => 101, 'share_type' => IShare::TYPE_LINK, - 'password' => 'password', - 'share_with' => 'password', + 'password' => 'redacted', + 'share_with' => 'redacted', 'share_with_displayname' => '(Shared link)', 'send_password_by_talk' => false, 'uid_owner' => 'initiatorId', @@ -4380,8 +4380,8 @@ class ShareAPIControllerTest extends TestCase { 'file_source' => 3, 'file_parent' => 1, 'file_target' => 'myTarget', - 'password' => 'mypassword', - 'share_with' => 'mypassword', + 'password' => 'redacted', + 'share_with' => 'redacted', 'share_with_displayname' => '(Shared link)', 'send_password_by_talk' => false, 'mail_send' => 0, @@ -4439,8 +4439,8 @@ class ShareAPIControllerTest extends TestCase { 'file_source' => 3, 'file_parent' => 1, 'file_target' => 'myTarget', - 'password' => 'mypassword', - 'share_with' => 'mypassword', + 'password' => 'redacted', + 'share_with' => 'redacted', 'share_with_displayname' => '(Shared link)', 'send_password_by_talk' => true, 'mail_send' => 0, @@ -4784,7 +4784,7 @@ class ShareAPIControllerTest extends TestCase { 'mail_send' => 0, 'mimetype' => 'myFolderMimeType', 'has_preview' => false, - 'password' => 'password', + 'password' => 'redacted', 'send_password_by_talk' => false, 'hide_download' => 0, 'can_edit' => false, @@ -4840,7 +4840,7 @@ class ShareAPIControllerTest extends TestCase { 'mail_send' => 0, 'mimetype' => 'myFolderMimeType', 'has_preview' => false, - 'password' => 'password', + 'password' => 'redacted', 'send_password_by_talk' => true, 'hide_download' => 0, 'can_edit' => false,