copySpaces.feature: Used sharingNG for sharing in given step

This commit is contained in:
Prarup Gurung
2024-05-07 16:27:11 +05:45
parent 17120a4037
commit f36fc13cba
3 changed files with 375 additions and 195 deletions
@@ -2115,7 +2115,8 @@ trait Sharing {
):void {
$user = $this->getActualUsername($user);
$this->verifyTableNodeRows($body, [], $this->shareResponseFields);
$response = $this->getShareData($user, $this->getLastCreatedUserGroupShareId());
$share_id = ($this->isUsingSharingNG()) ? $this->shareNgGetLastCreatedUserGroupShareID() : $this->getLastCreatedUserGroupShareId();
$response = $this->getShareData($user, $share_id);
$this->theHTTPStatusCodeShouldBe(
200,
"Error getting info of last share for user $user",