-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[tests-only] tests: refactor test script for removing permission from share #8134
Conversation
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
@@ -179,11 +200,22 @@ public function getSharesEndpointPath(?string $postfix = ''):string { | |||
public function shareNgGetLastCreatedLinkShareID(): string { | |||
$lastResponse = $this->shareNgGetLastCreatedLinkShare(); | |||
if (!isset($this->getJsonDecodedResponse($lastResponse)['id'])) { | |||
throw new Error('Response did not contain share id ' . $this->getJsonDecodedResponse($lastResponse)['id'] . ' for the created public link'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed this because if $this->getJsonDecodedResponse($lastResponse)['id']
is not set it'll probably come undefined
. so the error message might not make use of that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
others are looking good.
1cb694a
to
0358930
Compare
0358930
to
3c383a3
Compare
3c383a3
to
87e5116
Compare
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
… share (#8134) * tests: refactor test script for removing permission from share * address reviews --------- Co-authored-by: Saw-jan <[email protected]>
… share (#8134) * tests: refactor test script for removing permission from share * address reviews --------- Co-authored-by: Saw-jan <[email protected]>
… share (#8134) * tests: refactor test script for removing permission from share * address reviews --------- Co-authored-by: Saw-jan <[email protected]>
Description
Previously I fetched the
permissionId
with the extra request but thepermissionId
is what we knew to beshareId
so we can store the shareId directly from the share invite response and use it from the stored array. This removes the necessity for extra request.Related Issue
#8008