Use sharingNG for sharing in given step, refactored accordingly
This commit is contained in:
@@ -918,7 +918,8 @@ class PublicWebDavContext implements Context {
|
||||
$publicWebDAVAPIVersion,
|
||||
"",
|
||||
"",
|
||||
$expectedHttpCode
|
||||
$expectedHttpCode,
|
||||
$this->featureContext->isUsingSharingNG()
|
||||
);
|
||||
}
|
||||
|
||||
@@ -944,7 +945,8 @@ class PublicWebDavContext implements Context {
|
||||
$path,
|
||||
$password,
|
||||
"",
|
||||
$publicWebDAVAPIVersion
|
||||
$publicWebDAVAPIVersion,
|
||||
$this->featureContext->isUsingSharingNG()
|
||||
);
|
||||
$this->featureContext->theHTTPStatusCodeShouldBe(200, "", $response);
|
||||
}
|
||||
@@ -1093,7 +1095,8 @@ class PublicWebDavContext implements Context {
|
||||
$publicWebDAVAPIVersion,
|
||||
$password,
|
||||
"",
|
||||
$expectedHttpCode
|
||||
$expectedHttpCode,
|
||||
$this->featureContext->isUsingSharingNG()
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -754,7 +754,7 @@ trait Sharing {
|
||||
$user = $this->getActualUsername($user);
|
||||
|
||||
if ($updateLastPublicLink) {
|
||||
$share_id = (string) $this->getLastCreatedPublicShare()->id;
|
||||
$share_id = (FeatureContext::isUsingSharingNG()) ? $this->shareNgGetLastCreatedLinkShareID() : (string) $this->getLastCreatedPublicShare()->id;
|
||||
} else {
|
||||
if ($shareOwner === null) {
|
||||
$share_id = $this->getLastCreatedUserGroupShareId();
|
||||
|
||||
Reference in New Issue
Block a user