Merge pull request #10703 from owncloud/test/change-share-role-Denied-to-and-fro

[tests-only][full-ci] Tests for checking share access after changing share role to and from "Denied"
This commit is contained in:
Pradip Subedi
2025-01-01 17:25:27 +05:45
committed by GitHub
2 changed files with 112 additions and 2 deletions
+5 -2
View File
@@ -2058,15 +2058,18 @@ class SpacesContext implements Context {
* @return void
* @throws GuzzleException
*/
public function userShouldNotBeAbleToDownloadFileInsideSpace(
public function userShouldOrShouldNotBeAbleToDownloadFileFromSpace(
string $user,
string $fileName,
string $spaceName
): void {
$spaceId = $this->getSpaceIdByName($user, $spaceName);
$response = $this->featureContext->downloadFileAsUserUsingPassword(
$user,
$fileName,
$this->featureContext->getPasswordForUser($user)
$this->featureContext->getPasswordForUser($user),
null,
$spaceId
);
Assert::assertGreaterThanOrEqual(
400,