aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/tests
diff options
context:
space:
mode:
authorGit'Fellow <12234510+solracsf@users.noreply.github.com>2023-08-13 23:07:38 +0200
committerAnna <anna@nextcloud.com>2023-08-28 15:11:22 +0200
commit066f6ef16c7adb365b8c260ea6f06906ab63724e (patch)
tree65ed7c3ebdd1d63f7aad47326cf1689475176753 /apps/dav/tests
parentc2d55ab5f6284313a999c4d71224c0401f04edd4 (diff)
downloadnextcloud-server-066f6ef16c7adb365b8c260ea6f06906ab63724e.tar.gz
nextcloud-server-066f6ef16c7adb365b8c260ea6f06906ab63724e.zip
Stop sending deprecated Pragma header
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
Diffstat (limited to 'apps/dav/tests')
-rw-r--r--apps/dav/tests/unit/CardDAV/ImageExportPluginTest.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/dav/tests/unit/CardDAV/ImageExportPluginTest.php b/apps/dav/tests/unit/CardDAV/ImageExportPluginTest.php
index 6671eb836d0..6f48927646e 100644
--- a/apps/dav/tests/unit/CardDAV/ImageExportPluginTest.php
+++ b/apps/dav/tests/unit/CardDAV/ImageExportPluginTest.php
@@ -162,12 +162,11 @@ class ImageExportPluginTest extends TestCase {
->with(1, 'card', $size, $card)
->willReturn($file);
- $this->response->expects($this->exactly(5))
+ $this->response->expects($this->exactly(4))
->method('setHeader')
->withConsecutive(
['Cache-Control', 'private, max-age=3600, must-revalidate'],
['Etag', '"myEtag"'],
- ['Pragma', 'public'],
['Content-Type', 'image/jpeg'],
['Content-Disposition', 'attachment; filename=card.jpg'],
);
@@ -179,12 +178,11 @@ class ImageExportPluginTest extends TestCase {
->method('setBody')
->with('imgdata');
} else {
- $this->response->expects($this->exactly(3))
+ $this->response->expects($this->exactly(2))
->method('setHeader')
->withConsecutive(
['Cache-Control', 'private, max-age=3600, must-revalidate'],
['Etag', '"myEtag"'],
- ['Pragma', 'public'],
);
$this->cache->method('get')
->with(1, 'card', $size, $card)