@@ -88,7 +88,7 @@ private function createResponseCache(?CacheConfig $cacheConfig = null): Response
8888
8989 $ cacheConfig ??= new CacheConfig ();
9090
91- return new ResponseCache ($ cacheConfig , $ cache );
91+ return ( new ResponseCache ($ cacheConfig , $ cache))-> setTtl ( 300 );
9292 }
9393
9494 public function testCachePageIncomingRequest ()
@@ -101,7 +101,7 @@ public function testCachePageIncomingRequest()
101101 $ response ->setHeader ('ETag ' , 'abcd1234 ' );
102102 $ response ->setBody ('The response body. ' );
103103
104- $ return = $ pageCache ->make ($ request , $ response, 300 );
104+ $ return = $ pageCache ->make ($ request , $ response );
105105
106106 $ this ->assertTrue ($ return );
107107
@@ -141,7 +141,7 @@ public function testCachePageIncomingRequestWithCacheQueryString()
141141 $ response ->setHeader ('ETag ' , 'abcd1234 ' );
142142 $ response ->setBody ('The response body. ' );
143143
144- $ return = $ pageCache ->make ($ request , $ response, 300 );
144+ $ return = $ pageCache ->make ($ request , $ response );
145145
146146 $ this ->assertTrue ($ return );
147147
@@ -176,7 +176,7 @@ public function testCachePageCLIRequest()
176176 $ response = new Response ($ this ->appConfig );
177177 $ response ->setBody ('The response body. ' );
178178
179- $ return = $ pageCache ->make ($ request , $ response, 300 );
179+ $ return = $ pageCache ->make ($ request , $ response );
180180
181181 $ this ->assertTrue ($ return );
182182
@@ -210,7 +210,7 @@ public function testUnserializeError()
210210 $ response ->setHeader ('ETag ' , 'abcd1234 ' );
211211 $ response ->setBody ('The response body. ' );
212212
213- $ pageCache ->make ($ request , $ response, 300 );
213+ $ pageCache ->make ($ request , $ response );
214214
215215 $ cacheKey = $ pageCache ->generateCacheKey ($ request );
216216
@@ -236,7 +236,7 @@ public function testInvalidCacheError()
236236 $ response ->setHeader ('ETag ' , 'abcd1234 ' );
237237 $ response ->setBody ('The response body. ' );
238238
239- $ pageCache ->make ($ request , $ response, 300 );
239+ $ pageCache ->make ($ request , $ response );
240240
241241 $ cacheKey = $ pageCache ->generateCacheKey ($ request );
242242
0 commit comments