-
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
[test-only] new lock tests #7595
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. |
d4e8253
to
c75eab8
Compare
904f242
to
1dbc2a4
Compare
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.
I see that lockFileInProjectSpace
and lockFileUsingFileId
almost identical except fullUrl
. Maybe we can have single method for both actions
@@ -219,10 +159,10 @@ private function lockFileUsingFileId( | |||
$responseXml = $this->featureContext->getResponseXml($response, __METHOD__); | |||
$xmlPart = $responseXml->xpath("//d:locktoken/d:href"); | |||
if (isset($xmlPart[0])) { | |||
$this->tokenOfLastLock[$user][$filePath] = (string) $xmlPart[0]; | |||
$this->tokenOfLastLock[$user] = (string) $xmlPart[0]; |
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.
@saw-jan I'll solve storing lock token when I combine lockFileInSpace() and lockFile() and move tests from coreApiWebdavLocks to apiSpaces
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 👍
Kudos, SonarCloud Quality Gate passed! |
* add new lock tests * fix after review * Update WebDavLockingContext.php
* add new lock tests * fix after review * Update WebDavLockingContext.php
* add new lock tests * fix after review * Update WebDavLockingContext.php
related #7561
We have lock test which we moved from core repo. Out of 98 scenarios related to locking, only 6 of them work.
and the existing tests can't:
I created first PR where:
found issue:
next test, next PRs: