/**
  * @test
  */
 public function addHeadersInLiveWorkspaceAndCachedResponseWithDefaultAndLargeEntryLifetime()
 {
     $this->mockContext->expects($this->any())->method('getWorkspaceName')->willReturn('live');
     $this->service->injectSettings(array('cacheHeaders' => array('defaultSharedMaximumAge' => 86400)));
     $this->contentCacheFrontend->set('entry1', 'Foo', array('Tag1'), 124800);
     $this->mockResponse->expects($this->atLeastOnce())->method('setSharedMaximumAge')->with(86400);
     $this->service->addHeaders($this->mockRequest, $this->mockResponse, $this->mockController);
 }
 /**
  * @test
  */
 public function getByTagDoesNotReturnMetadata()
 {
     $this->frontend->set('foo', 'Bar', array('Tag1', 'Tag2'), 10240);
     $entries = $this->frontend->getByTag('Tag2');
     $this->assertEquals(array('foo' => 'Bar'), $entries);
 }