Skip to content

Commit

Permalink
reset spaceidfromocis
Browse files Browse the repository at this point in the history
  • Loading branch information
KarunAtreya committed Sep 22, 2023
1 parent 5f5b32b commit bcb3668
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/acceptance/features/bootstrap/TUSContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,7 @@ public function userUploadsFileWithChecksum(
): void {
$response = $this->sendsAChunkToTUSLocationWithOffsetAndData($user, $offset, $content, $checksum);
$this->featureContext->setResponse($response);
WebDavHelper::$SPACE_ID_FROM_OCIS = '';
}

/**
Expand All @@ -459,6 +460,7 @@ public function userHasUploadedFileWithChecksum(
): void {
$response = $this->sendsAChunkToTUSLocationWithOffsetAndData($user, $offset, $content, $checksum);
$this->featureContext->theHTTPStatusCodeShouldBe(204, "", $response);
WebDavHelper::$SPACE_ID_FROM_OCIS = '';
}

/**
Expand All @@ -475,6 +477,7 @@ public function userHasUploadedFileWithChecksum(
public function userUploadsChunkFileWithChecksum(string $user, string $offset, string $data, string $checksum): void {
$response = $this->sendsAChunkToTUSLocationWithOffsetAndData($user, $offset, $data, $checksum);
$this->featureContext->setResponse($response);
WebDavHelper::$SPACE_ID_FROM_OCIS = '';
}

/**
Expand All @@ -491,6 +494,7 @@ public function userUploadsChunkFileWithChecksum(string $user, string $offset, s
public function userHasUploadedChunkFileWithChecksum(string $user, string $offset, string $data, string $checksum): void {
$response = $this->sendsAChunkToTUSLocationWithOffsetAndData($user, $offset, $data, $checksum);
$this->featureContext->theHTTPStatusCodeShouldBe(204, "", $response);
WebDavHelper::$SPACE_ID_FROM_OCIS = '';
}

/**
Expand All @@ -512,5 +516,6 @@ public function userOverwritesFileWithChecksum(string $user, string $offset, str
$this->userHasCreatedNewTUSResourceWithHeaders($user, $headers);
$response = $this->sendsAChunkToTUSLocationWithOffsetAndData($user, $offset, $data, $checksum);
$this->featureContext->setResponse($response);
WebDavHelper::$SPACE_ID_FROM_OCIS = '';
}
}

0 comments on commit bcb3668

Please sign in to comment.