aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/AppFramework
diff options
context:
space:
mode:
authorjld3103 <jld3103yt@gmail.com>2023-06-14 08:56:42 +0200
committerjld3103 <jld3103yt@gmail.com>2023-06-30 09:33:29 +0200
commitb0001c6010840362355c181b831b4517ac19b8fc (patch)
tree20e2e5194e3f780ceb9ed61bfbcdbc4df4de59c2 /tests/lib/AppFramework
parent794d511774c28e6a8dc9d2a70d6968322140b70e (diff)
downloadnextcloud-server-b0001c6010840362355c181b831b4517ac19b8fc.tar.gz
nextcloud-server-b0001c6010840362355c181b831b4517ac19b8fc.zip
Add template types to responses
Signed-off-by: jld3103 <jld3103yt@gmail.com>
Diffstat (limited to 'tests/lib/AppFramework')
-rw-r--r--tests/lib/AppFramework/Http/ResponseTest.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/lib/AppFramework/Http/ResponseTest.php b/tests/lib/AppFramework/Http/ResponseTest.php
index dac4606124a..c1c122e789e 100644
--- a/tests/lib/AppFramework/Http/ResponseTest.php
+++ b/tests/lib/AppFramework/Http/ResponseTest.php
@@ -52,13 +52,16 @@ class ResponseTest extends \Test\TestCase {
'ETag' => 3,
'Something-Else' => 'hi',
'X-Robots-Tag' => 'noindex, nofollow',
+ 'Cache-Control' => 'no-cache, no-store, must-revalidate',
];
$this->childResponse->setHeaders($expected);
- $headers = $this->childResponse->getHeaders();
$expected['Content-Security-Policy'] = "default-src 'none';base-uri 'none';manifest-src 'self';frame-ancestors 'none'";
$expected['Feature-Policy'] = "autoplay 'none';camera 'none';fullscreen 'none';geolocation 'none';microphone 'none';payment 'none'";
+ $headers = $this->childResponse->getHeaders();
+ unset($headers['X-Request-Id']);
+
$this->assertEquals($expected, $headers);
}