fix: Remove call to non-existing method in 28 and add missing use in test

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
Côme Chilliet 2024-08-19 10:31:30 +02:00 committed by Côme Chilliet
parent 3904bf5651
commit bcb1bbb1bd
2 changed files with 1 additions and 1 deletions

View file

@ -1344,7 +1344,6 @@ class DefaultShareProvider implements IShareProvider {
return;
}
$userGroups = $this->groupManager->getUserGroupIds($user);
$userGroups = array_diff($userGroups, $this->shareManager->shareWithGroupMembersOnlyExcludeGroupsList());
// Delete user shares received by the user from users in the group.
$userReceivedShares = $this->shareManager->getSharedWith($uid, IShare::TYPE_USER, null, -1);

View file

@ -39,6 +39,7 @@ use OCP\IUser;
use OCP\IUserManager;
use OCP\L10N\IFactory;
use OCP\Mail\IMailer;
use OCP\Share\IManager as IShareManager;
use OCP\Share\IShare;
use PHPUnit\Framework\MockObject\MockObject;