From bcb366856f946784cfb0ac71976cb6c9c7b35f63 Mon Sep 17 00:00:00 2001 From: KarunAtreya Date: Fri, 22 Sep 2023 15:57:30 +0545 Subject: [PATCH] reset spaceidfromocis --- tests/acceptance/features/bootstrap/TUSContext.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/acceptance/features/bootstrap/TUSContext.php b/tests/acceptance/features/bootstrap/TUSContext.php index d890de01292..9aede101399 100644 --- a/tests/acceptance/features/bootstrap/TUSContext.php +++ b/tests/acceptance/features/bootstrap/TUSContext.php @@ -438,6 +438,7 @@ public function userUploadsFileWithChecksum( ): void { $response = $this->sendsAChunkToTUSLocationWithOffsetAndData($user, $offset, $content, $checksum); $this->featureContext->setResponse($response); + WebDavHelper::$SPACE_ID_FROM_OCIS = ''; } /** @@ -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 = ''; } /** @@ -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 = ''; } /** @@ -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 = ''; } /** @@ -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 = ''; } }