Skip to content

Commit

Permalink
reset after scenario using after hook
Browse files Browse the repository at this point in the history
  • Loading branch information
KarunAtreya committed Sep 25, 2023
1 parent 676e735 commit f7f5f42
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
1 change: 1 addition & 0 deletions tests/acceptance/features/bootstrap/FeatureContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -3391,6 +3391,7 @@ public function clearSpaceId(): void {
if (\count(WebDavHelper::$spacesIdRef) > 0) {
WebDavHelper::$spacesIdRef = [];
}
WebDavHelper::$SPACE_ID_FROM_OCIS = '';
}

/**
Expand Down
6 changes: 0 additions & 6 deletions tests/acceptance/features/bootstrap/TUSContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@ public function sendsAChunkToTUSLocationWithOffsetAndData(string $user, string $
public function userSendsAChunkToTUSLocationWithOffsetAndData(string $user, string $offset, string $data): void {
$response = $this->sendsAChunkToTUSLocationWithOffsetAndData($user, $offset, $data);
$this->featureContext->setResponse($response);
WebDavHelper::$SPACE_ID_FROM_OCIS = '';
}

/**
Expand Down Expand Up @@ -438,7 +437,6 @@ public function userUploadsFileWithChecksum(
): void {
$response = $this->sendsAChunkToTUSLocationWithOffsetAndData($user, $offset, $content, $checksum);
$this->featureContext->setResponse($response);
WebDavHelper::$SPACE_ID_FROM_OCIS = '';
}

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

/**
Expand All @@ -477,7 +474,6 @@ 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 @@ -494,7 +490,6 @@ 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 @@ -516,6 +511,5 @@ 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 f7f5f42

Please sign in to comment.