[tests-only] add API test coverage for issue-8242 (#8295)

* add test coverage for issue-8242

* add test coverage for issue-8242
This commit is contained in:
Sawjan Gurung
2024-02-07 13:38:43 +01:00
committed by GitHub
parent 24da3631db
commit 571af9ecce
2 changed files with 128 additions and 18 deletions
@@ -1218,6 +1218,7 @@ class FeatureContext extends BehatVariablesContext {
*/
public function userSendsHTTPMethodToUrl(string $user, string $verb, string $url): void {
$user = $this->getActualUsername($user);
$url = $this->substituteInLineCodes($url, $user);
$this->setResponse($this->sendingToWithDirectUrl($user, $verb, $url, null));
}
@@ -2879,6 +2880,14 @@ class FeatureContext extends BehatVariablesContext {
"function" =>
[$this, "getGroupIdByGroupName"],
"parameter" => [$group]
],
[
"code" => "%shares_drive_id%",
"function" => [
$this->spacesContext,
"getSpaceIdByName"
],
"parameter" => [$user, "Shares"]
]
);
}