delete unnecessary steps from context files
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user