delete unnecessary steps from context files

This commit is contained in:
Viktor Scharf
2025-02-05 19:43:12 +01:00
parent 46df1a041e
commit 72fd765b93
14 changed files with 295 additions and 1586 deletions
@@ -932,26 +932,6 @@ class FeatureContext extends BehatVariablesContext {
$this->ocsApiVersion = (int)$version;
}
/**
* @Given /^as user "([^"]*)"$/
*
* @param string $user
*
* @return void
*/
public function asUser(string $user): void {
$this->currentUser = $this->getActualUsername($user);
}
/**
* @Given as the administrator
*
* @return void
*/
public function asTheAdministrator(): void {
$this->currentUser = $this->getAdminUsername();
}
/**
* @return string
*/
@@ -1690,21 +1670,6 @@ class FeatureContext extends BehatVariablesContext {
);
}
/**
* @Then the HTTP status code should be failure
*
* @return void
*/
public function theHTTPStatusCodeShouldBeFailure(): void {
$statusCode = $this->response->getStatusCode();
$message = "The HTTP status code $statusCode is not greater than or equals to 400";
Assert::assertGreaterThanOrEqual(
400,
$statusCode,
$message
);
}
/**
* @param string $path
* @param string $filename