]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix unit test of the ResponseTest 21510/head
authorRoeland Jago Douma <roeland@famdouma.nl>
Sun, 21 Jun 2020 07:44:56 +0000 (09:44 +0200)
committerRoeland Jago Douma <roeland@famdouma.nl>
Sun, 21 Jun 2020 07:44:56 +0000 (09:44 +0200)
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
tests/lib/AppFramework/Http/ResponseTest.php

index f33d0a0089d5b6dfe82778a093c23659e7771ea1..435dde7d34504ceccb794b9f5fe46dfe1c1e6933 100644 (file)
@@ -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']);
        }