aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2020-06-22 10:31:19 +0200
committerGitHub <noreply@github.com>2020-06-22 10:31:19 +0200
commitb5e6b90584504f169bd6d74e481ebe744529352f (patch)
tree0041c82367edae34d71916f82500ebed95483b23
parent2e615c0e61718ed59cb2a2aa70c80b0b1d35fc96 (diff)
parentc006b5ff2a84d38f5fbfcf21c558572cd6bcfb1c (diff)
downloadnextcloud-server-b5e6b90584504f169bd6d74e481ebe744529352f.tar.gz
nextcloud-server-b5e6b90584504f169bd6d74e481ebe744529352f.zip
Merge pull request #21510 from nextcloud/fix/unit_test/responsetest
Fix unit test of the ResponseTest
-rw-r--r--tests/lib/AppFramework/Http/ResponseTest.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/lib/AppFramework/Http/ResponseTest.php b/tests/lib/AppFramework/Http/ResponseTest.php
index f33d0a0089d..435dde7d345 100644
--- a/tests/lib/AppFramework/Http/ResponseTest.php
+++ b/tests/lib/AppFramework/Http/ResponseTest.php
@@ -229,15 +229,15 @@ class ResponseTest extends \Test\TestCase {
public function testCacheSeconds() {
$time = $this->createMock(ITimeFactory::class);
$time->method('getTime')
- ->willReturn('1234567');
+ ->willReturn(1234567);
$this->overwriteService(ITimeFactory::class, $time);
$this->childResponse->cacheFor(33);
$headers = $this->childResponse->getHeaders();
- $this->assertEquals('max-age=33, must-revalidate', $headers['Cache-Control']);
- $this->assertEquals('public', $headers['Pragma']);
+ $this->assertEquals('private, max-age=33, must-revalidate', $headers['Cache-Control']);
+ $this->assertEquals('private', $headers['Pragma']);
$this->assertEquals('Thu, 15 Jan 1970 06:56:40 +0000', $headers['Expires']);
}