[tests-only][full-ci]Added tests for create link share without password (#8040)

* Added tests for create link share without password

* fix CI failure
This commit is contained in:
Sagar Gurung
2023-12-22 16:28:47 +05:45
committed by GitHub
parent 35c95685ba
commit 88aa44a768
4 changed files with 77 additions and 2 deletions
@@ -141,8 +141,9 @@ class SharingNgContext implements Context {
$itemId = $this->spacesContext->getFileId($user, $space, $resource);
}
$bodyRows['displayName'] = \array_key_exists('displayName', $bodyRows) ? $bodyRows['displayName'] : null;
$bodyRows['expirationDateTime'] = \array_key_exists('expirationDateTime', $bodyRows) ? $bodyRows['expirationDateTime'] : null;
$bodyRows['displayName'] = $bodyRows['displayName'] ?? null;
$bodyRows['expirationDateTime'] = $bodyRows['expirationDateTime'] ?? null;
$bodyRows['password'] = $bodyRows['password'] ?? null;
$body = [
'type' => $bodyRows['role'],
'displayName' => $bodyRows['displayName'],