[tests-only][full-ci] removing the setresponse in given/then step in SettingContext and TUSContext (#7298)
* refactor given when then steps in settings and tus contexts * set resource location from response * addressed the reviews * reset spaceidfromocis * reset after scenario using after hook
This commit is contained in:
@@ -126,7 +126,8 @@ class SpacesTUSContext implements Context {
|
||||
TableNode $headers
|
||||
): void {
|
||||
$this->spacesContext->setSpaceIDByName($user, $spaceName);
|
||||
$this->tusContext->createNewTUSResourceWithHeaders($user, $headers, $content);
|
||||
$response = $this->tusContext->createNewTUSResourceWithHeaders($user, $headers, $content);
|
||||
$this->featureContext->setResponse($response);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user