shareSubItemOfSpace.feature: Used sharingNG for sharing in given step

This commit is contained in:
Prarup Gurung
2024-05-14 17:07:10 +05:45
parent 8a91df10ad
commit f2f2439284
4 changed files with 114 additions and 59 deletions
@@ -1934,10 +1934,11 @@ trait Sharing {
* @param TableNode $table
*
* @return void
* @throws Exception
*/
public function userGetsTheLastShareSharedWithHimUsingTheSharingApi(string $user, TableNode $table):void {
$user = $this->getActualUsername($user);
$shareId = (string) $this->getLastCreatedPublicShare()->id;
$shareId = ($this->isUsingSharingNG()) ? $this->shareNgGetLastCreatedUserGroupShareID() : $this->getLastCreatedUserGroupShareId();
$response = $this->getShareData($user, $shareId);
$this->checkFields($user, $table, $response);
}