mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-03 02:39:52 -06:00
Refactor test for updating the share (#5789)
This commit is contained in:
committed by
GitHub
parent
94c3df2246
commit
b445f847e8
@@ -2376,7 +2376,7 @@ trait Sharing {
|
||||
}
|
||||
|
||||
/**
|
||||
* @When the information about the last share for user :user should include
|
||||
* @Then the information about the last share for user :user should include
|
||||
*
|
||||
* @param string $user
|
||||
* @param TableNode $table
|
||||
|
||||
@@ -2015,13 +2015,6 @@ class SpacesContext implements Context {
|
||||
): void {
|
||||
$shareId = $this->featureContext->getLastPublicLinkShareId();
|
||||
$rows = $table->getRowsHash();
|
||||
$rows["role"] = \array_key_exists("role", $rows) ? $rows["role"] : 'viewer';
|
||||
$rows["expireDate"] = \array_key_exists("expireDate", $rows) ? $rows["expireDate"] : null;
|
||||
|
||||
$body = [
|
||||
"expireDate" => $rows["expireDate"],
|
||||
];
|
||||
|
||||
$fullUrl = $this->baseUrl . $this->ocsApiUrl . '/' . $shareId;
|
||||
$this->featureContext->setResponse(
|
||||
HttpRequestHelper::sendRequest(
|
||||
@@ -2031,7 +2024,7 @@ class SpacesContext implements Context {
|
||||
$this->featureContext->getActualUsername($user),
|
||||
$this->featureContext->getPasswordForUser($user),
|
||||
null,
|
||||
$body
|
||||
$rows
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user