[tests-only][full-ci]add test for antivirus user group sharing (#6463)

* add test for antivirus user and group share

* added test for 3 file

* deduct of one file

---------

Co-authored-by: nabim777 <“nabinalemagar019@gmail.com”>
This commit is contained in:
Nalem7
2023-06-12 17:12:01 +05:45
committed by GitHub
co-authored by nabim777
parent fcd3e5dd59
commit cb16fd5843
2 changed files with 107 additions and 0 deletions
@@ -1228,6 +1228,28 @@ class SpacesContext implements Context {
$this->featureContext->uploadFileWithContent($user, $content, $destination);
}
/**
* @When /^user "([^"]*)" uploads a file "([^"]*)" to "([^"]*)" in space "([^"]*)" using the WebDAV API$/
*
* @param string $user
* @param string $source
* @param string $destination
* @param string $spaceName
*
* @return void
* @throws GuzzleException
* @throws Exception
*/
public function theUserUploadsALocalFileToSpace(
string $user,
string $source,
string $destination,
string $spaceName
): void {
$this->setSpaceIDByName($user, $spaceName);
$this->featureContext->userUploadsAFileTo($user, $source, $destination);
}
/**
* @When /^user "([^"]*)" uploads a file inside space "([^"]*)" owned by the user "([^"]*)" with content "([^"]*)" to "([^"]*)" using the WebDAV API$/
*