diff options
Diffstat (limited to 'apps/dav/tests')
-rw-r--r-- | apps/dav/tests/unit/CardDAV/ImageExportPluginTest.php | 6 |
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) |