From 34ef9079ef273cfe0844cd364214414b58e379dc Mon Sep 17 00:00:00 2001 From: Nicolas Le Goff Date: Tue, 2 Dec 2014 18:09:33 +0100 Subject: [PATCH] Fix tests --- tests/Alchemy/Tests/Phrasea/Application/OverviewTest.php | 3 +-- .../Tests/Phrasea/Http/ServeFileResponseFactoryTest.php | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/Alchemy/Tests/Phrasea/Application/OverviewTest.php b/tests/Alchemy/Tests/Phrasea/Application/OverviewTest.php index 65687508b7..d91ffeadbe 100644 --- a/tests/Alchemy/Tests/Phrasea/Application/OverviewTest.php +++ b/tests/Alchemy/Tests/Phrasea/Application/OverviewTest.php @@ -26,7 +26,7 @@ class OverviewTest extends \PhraseanetWebTestCaseAuthenticatedAbstract $this->assertNotFoundResponse(self::$DI['client']->getResponse()); } - public function testEtag() + public function testLastModified() { $tmp = tempnam(sys_get_temp_dir(), 'testEtag'); copy(__DIR__ . '/../../../../files/cestlafete.jpg', $tmp); @@ -43,7 +43,6 @@ class OverviewTest extends \PhraseanetWebTestCaseAuthenticatedAbstract /* @var $response \Symfony\Component\HttpFoundation\Response */ $this->assertTrue($response->isOk()); - $this->assertNotNull($response->getEtag()); $this->assertInstanceOf('DateTime', $response->getLastModified()); $this->assertEquals(0, $response->getMaxAge()); $this->assertEquals(0, $response->getTtl()); diff --git a/tests/Alchemy/Tests/Phrasea/Http/ServeFileResponseFactoryTest.php b/tests/Alchemy/Tests/Phrasea/Http/ServeFileResponseFactoryTest.php index a355a61e66..453b51806b 100644 --- a/tests/Alchemy/Tests/Phrasea/Http/ServeFileResponseFactoryTest.php +++ b/tests/Alchemy/Tests/Phrasea/Http/ServeFileResponseFactoryTest.php @@ -37,7 +37,6 @@ class ServeFileResponseFactoryTest extends \PhraseanetWebTestCaseAbstract $response = $this->factory->deliverFile(__DIR__ . '/../../../../files/cestlafete.jpg', 'hello', 'attachment', 'application/json', 23456); $this->assertEquals(23456, $response->getMaxAge()); - $this->assertTrue($response->headers->getCacheControlDirective('private')); } public function testDeliverFileWithFilename()