adding test for file version of a share in a projectspace (#7829)

This commit is contained in:
nirajacharya2
2023-12-14 14:44:27 +05:45
committed by GitHub
parent 402fbc52df
commit dd12844282
3 changed files with 56 additions and 0 deletions

View File

@@ -101,6 +101,29 @@ class FilesVersionsContext implements Context {
);
}
/**
* @When user :user gets the number of versions of file :resource using file-id path :endpoint
* @When user :user tries to get the number of versions of file :resource using file-id path :endpoint
*
* @param string $user
* @param string $endpoint
*
* @return void
*/
public function userGetsTheNumberOfVersionsOfFileOfTheSpace(string $user, string $endpoint):void {
$this->featureContext->setResponse(
$this->featureContext->makeDavRequest(
$user,
"PROPFIND",
$endpoint,
null,
null,
null,
(string)$this->featureContext->getDavPathVersion()
)
);
}
/**
* @When user :user gets the version metadata of file :file
*