refacor given when and then steps in checksum and favorite context (#7268)
making helper function, checking and setting response in given step and when steo respectively returning response and using in given/then steps as required in favoritesContext set the returned response on SpaceContext changed to inline variable in some lines as required to check for the specific https response code
This commit is contained in:
@@ -3038,7 +3038,7 @@ class SpacesContext implements Context {
|
||||
*/
|
||||
public function userFavoritesElementInSpaceUsingTheWebdavApi(string $user, string $path, string $spaceName): void {
|
||||
$this->setSpaceIDByName($user, $spaceName);
|
||||
$this->favoritesContext->userFavoritesElement($user, $path);
|
||||
$this->featureContext->setResponse($this->favoritesContext->userFavoritesElement($user, $path));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user