refactored acceptance test code to store response data related to public shares on single store (#6930)

This commit is contained in:
Prajwol Amatya
2023-08-03 13:51:22 +05:45
committed by GitHub
parent b730234e86
commit db098fa4f5
7 changed files with 75 additions and 259 deletions
@@ -289,7 +289,7 @@ class WebDavPropertiesContext implements Context {
* @throws Exception
*/
public function publicGetsThePropertiesOfFolder(string $path, TableNode $propertiesTable):void {
$user = $this->featureContext->getLastPublicShareToken();
$user = $this->featureContext->getLastCreatedPublicShareToken();
$properties = null;
foreach ($propertiesTable->getRows() as $row) {
$properties[] = $row[0];
@@ -890,7 +890,7 @@ class WebDavPropertiesContext implements Context {
[
"code" => "%public_token%",
"function" =>
[$this->featureContext, "getLastPublicShareToken"],
[$this->featureContext, "getLastCreatedPublicShareToken"],
"parameter" => []
],
]