add test to list copied folder ocm share

Signed-off-by: prashant-gurung899 <prasantgrg777@gmail.com>
This commit is contained in:
prashant-gurung899
2024-12-05 11:31:24 +05:45
parent 024b0b81d3
commit fe0da6511d
2 changed files with 98 additions and 2 deletions
+2 -2
View File
@@ -670,7 +670,7 @@ trait WebDav {
}
/**
* @Given /^user "([^"]*)" has copied file "([^"]*)" to "([^"]*)"$/
* @Given /^user "([^"]*)" has copied (?:file|folder) "([^"]*)" to "([^"]*)"$/
*
* @param string $user
* @param string $fileSource
@@ -686,7 +686,7 @@ trait WebDav {
$response = $this->copyFile($user, $fileSource, $fileDestination);
$this->theHTTPStatusCodeShouldBe(
["201", "204"],
"HTTP status code was not 201 or 204 while trying to copy file '$fileSource' to '$fileDestination' for user '$user'",
"HTTP status code was not 201 or 204 while trying to copy resource '$fileSource' to '$fileDestination' for user '$user'",
$response
);
}