[tests-only] [full-ci] Use sharingNg in coreApiShareOperationsToShares1 (#9162)

* update given step using sharingNg in accessToShare.feature

* update given step using sharingNg in changingFilesShare.feature

* update given step using sharingNg in gettingShares.feature

* update given step using sharingNg in gettingSharesPendingFiltered.feature

* update given step using sharingNg in gettingSharesReceivedFiltered.feature

* update given step using sharingNg in gettingSharesReceivedFilteredEmpty.feature

* update given step using sharingNg in gettingSharesSharedFiltered.feature

* update given step using sharingNg in gettingSharesSharedFilteredEmpty.feature
This commit is contained in:
Salipa Gurung
2024-05-15 15:20:58 +05:45
committed by GitHub
parent 3949dd5385
commit 20eda8b6e2
10 changed files with 360 additions and 112 deletions
@@ -1783,7 +1783,7 @@ trait Sharing {
* @throws Exception
*/
public function userGetsInfoOfLastShareUsingTheSharingApi(string $user, ?string $language = null):void {
$shareId = $this->getLastCreatedUserGroupShareId();
$shareId = $this->isUsingSharingNg() ? $this->shareNgGetLastCreatedUserGroupShareID() : $this->getLastCreatedUserGroupShareId();
$language = TranslationHelper::getLanguage($language);
$this->setResponse($this->getShareData($user, $shareId, $language));
$this->pushToLastStatusCodesArrays();
@@ -2254,7 +2254,7 @@ trait Sharing {
* @throws Exception
*/
public function checkingLastShareIDIsIncluded():void {
$shareId = $this->getLastCreatedUserGroupShareId();
$shareId = ($this->isUsingSharingNG()) ? $this->shareNgGetLastCreatedUserGroupShareID() : $this->getLastCreatedUserGroupShareId();
if (!$this->isFieldInResponse('id', $shareId)) {
Assert::fail(
"Share id $shareId not found in response"
@@ -2269,7 +2269,7 @@ trait Sharing {
* @throws Exception
*/
public function checkLastShareIDIsNotIncluded():void {
$shareId = $this->getLastCreatedUserGroupShareId();
$shareId = $this->isUsingSharingNG() ? $this->shareNgGetLastCreatedUserGroupShareID() : $this->getLastCreatedUserGroupShareId();
if ($this->isFieldInResponse('id', $shareId, false)) {
Assert::fail(
"Share id $shareId has been found in response"