mirror of
https://github.com/DirectoryLister/DirectoryLister.git
synced 2025-08-22 13:43:15 +02:00
Updated CacheMiddlewareTest
This commit is contained in:
@@ -35,7 +35,7 @@ class CacheMiddlewareTest extends TestCase
|
||||
|
||||
$response = (new CacheMiddleware($this->config))($this->request, $this->handler);
|
||||
|
||||
$this->assertEquals(['max-age=0'], $response->getHeader('Cache-Control'));
|
||||
$this->assertEquals(['max-age=0, private, must-revalidate'], $response->getHeader('Cache-Control'));
|
||||
}
|
||||
|
||||
public function test_it_adds_a_response_cache_header_for_a_pre_configured_http_cache_option(): void
|
||||
@@ -48,6 +48,6 @@ class CacheMiddlewareTest extends TestCase
|
||||
|
||||
$response = (new CacheMiddleware($this->config))($this->request, $this->handler);
|
||||
|
||||
$this->assertEquals(['max-age=300'], $response->getHeader('Cache-Control'));
|
||||
$this->assertEquals(['max-age=300, private, must-revalidate'], $response->getHeader('Cache-Control'));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user