adding tests for sending a share invitation to a user on virtual drive (#8705)

This commit is contained in:
nirajacharya2
2024-03-22 17:28:46 +05:45
committed by GitHub
parent d14a8c0994
commit 208b25c7ed
2 changed files with 49 additions and 2 deletions
@@ -178,7 +178,7 @@ class SharingNgContext implements Context {
$resource = $rows['resource'] ?? '';
// for a disabled and deleted space, resource id is not accessible, so get resource id from the saved response
if ($resource === '' && $rows['space'] !== 'Personal') {
if ($resource === '' && !\in_array($rows['space'], ['Personal', 'Shares'])) {
$itemId = $space['fileId'];
} else {
$itemId = $this->spacesContext->getResourceId($user, $rows['space'], $resource);