changing given step of creating share in feature file (#9055)

This commit is contained in:
Sabin Panta
2024-05-09 14:07:33 +05:45
committed by GitHub
parent 4c2ae74837
commit 2c115e2418
3 changed files with 166 additions and 112 deletions
@@ -328,8 +328,9 @@ class WebDavLockingContext implements Context {
* @return void
*/
public function publicLocksLastSharedFile(TableNode $properties) {
$token = ($this->featureContext->isUsingSharingNG()) ? $this->featureContext->shareNgGetLastCreatedLinkShareToken() : $this->featureContext->getLastCreatedPublicShareToken();
$response = $this->lockFile(
$this->featureContext->getLastCreatedPublicShareToken(),
$token,
"/",
$properties,
null,
@@ -377,8 +378,9 @@ class WebDavLockingContext implements Context {
string $publicWebDAVAPIVersion,
TableNode $properties
) {
$token = ($this->featureContext->isUsingSharingNG()) ? $this->featureContext->shareNgGetLastCreatedLinkShareToken() : $this->featureContext->getLastCreatedPublicShareToken();
$response = $this->lockFile(
$this->featureContext->getLastCreatedPublicShareToken(),
$token,
$file,
$properties,
null,