Skip to content
Permalink
Browse files

Fixed failing test for CakeResponse::sharable + spacing

  • Loading branch information...
Costa Caruso
Costa Caruso committed Jul 3, 2014
1 parent 1164c0b commit 4f559f5cc954438662bf9a8f030f3ec19dc23a3a
Showing with 2 additions and 1 deletion.
  1. +1 −0 lib/Cake/Network/CakeResponse.php
  2. +1 −1 lib/Cake/Test/Case/Network/CakeResponseTest.php
@@ -838,6 +838,7 @@ public function sharable($public = null, $time = null) {
$this->_cacheDirectives['private'] = true;
unset($this->_cacheDirectives['public']);
}
$this->maxAge($time);
if (!$time) {
$this->_setCacheControl();
@@ -751,7 +751,7 @@ public function testSharable() {
$response = new CakeResponse;
$response->sharable(true, 3600);
$headers = $response->header();
$this->assertEquals('public, s-maxage=3600', $headers['Cache-Control']);
$this->assertEquals('public, max-age=3600', $headers['Cache-Control']);
$response = new CakeResponse;
$response->sharable(false, 3600);

0 comments on commit 4f559f5

Please sign in to comment.
You can’t perform that action at this time.