refactor given when then steps in settings and tus contexts (#7357)

set resource location from response

addressed the reviews

reset  spaceidfromocis

reset after scenario using after hook
This commit is contained in:
Karun Atreya
2023-09-27 12:29:56 +05:45
committed by GitHub
parent 5ca6a98087
commit cc794abb38
4 changed files with 104 additions and 66 deletions
@@ -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);
}
/**