Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-08-18 12:18:12 +0300
committerCarl Schwan <carl@carlschwan.eu>2022-08-18 16:13:38 +0300
commitbc600b5d840fa8ffdbfb850584d89a42eb746b9d (patch)
tree2c3d32d6e21c1f3a7f6dc75cc1ea035b051f7e9e /tests
parent6dd0615928c155a1aa4d2cfdd6fa47392b061279 (diff)
Mark avatar has immutable
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'tests')
-rw-r--r--tests/Unit/Controller/AvatarControllerTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/Unit/Controller/AvatarControllerTest.php b/tests/Unit/Controller/AvatarControllerTest.php
index 557a946cc..f7fab1368 100644
--- a/tests/Unit/Controller/AvatarControllerTest.php
+++ b/tests/Unit/Controller/AvatarControllerTest.php
@@ -83,7 +83,7 @@ class AvatarControllerTest extends TestCase {
$resp = $this->controller->url($email);
$expected = new JSONResponse($avatar);
- $expected->cacheFor(7 * 24 * 60 * 60);
+ $expected->cacheFor(7 * 24 * 60 * 60, false, true);
$this->assertEquals($expected, $resp);
}
@@ -112,7 +112,7 @@ class AvatarControllerTest extends TestCase {
$expected = new AvatarDownloadResponse('data');
$expected->addHeader('Content-Type', 'image/jpeg');
- $expected->cacheFor(7 * 24 * 60 * 60);
+ $expected->cacheFor(7 * 24 * 60 * 60, false, true);
$this->assertEquals($expected, $resp);
}