[tests-only] add API test to check cors headers with OPTIONS request to tus upload endpoint (#8646)

* test(api): check cors headers with OPTIONS request to tus upload endpoint

* test(api): fix class name

* fix table header name
This commit is contained in:
Sawjan Gurung
2024-03-25 15:37:35 +05:45
committed by GitHub
parent c5b194c8bd
commit 11986e36bb
3 changed files with 85 additions and 9 deletions
@@ -42,6 +42,13 @@ class TUSContext implements Context {
private ?string $resourceLocation = null;
/**
* @return string
*/
public function getTusResourceLocation(): string {
return $this->resourceLocation ?: "";
}
/**
* @param string $user
* @param TableNode $headers