Removed step and implementation setting default share folder

This commit is contained in:
Prarup Gurung
2023-02-23 15:32:27 +05:45
parent 56d3192fc7
commit 3419eacb6d
55 changed files with 53 additions and 148 deletions
@@ -957,32 +957,6 @@ class OccContext implements Context {
);
}
/**
* @Given the administrator has set the default folder for received shares to :folder
*
* @param string $folder
*
* @return void
* @throws Exception
*/
public function theAdministratorHasSetTheDefaultFolderForReceivedSharesTo(string $folder):void {
if (OcisHelper::isTestingOnOcisOrReva()) {
// The default folder for received shares is already "Shares" on OCIS and REVA.
// If the step is asking for a different folder, then fail.
// Otherwise just return - the setting is already done by default.
Assert::assertEquals(
"Shares",
\trim($folder, "/"),
__METHOD__ . " tried to set the default folder for received shares to $folder but that is not possible on OCIS"
);
return;
}
$this->addSystemConfigKeyUsingTheOccCommand(
"share_folder",
$folder
);
}
/**
* @When the administrator has set depth_infinity_allowed to :depth_infinity_allowed
*