eZ\Publish\Core\REST\Server\Tests\Output\ValueObjectVisitor\CachedValueTest::testVisitCacheTTLCacheDisabled PHP Method

testVisitCacheTTLCacheDisabled() public method

    public function testVisitCacheTTLCacheDisabled()
    {
        // disable caching globally
        $this->options = array_merge($this->defaultOptions, array('content.ttl_cache' => false));
        $responseMock = $this->getResponseMock();
        $responseMock->expects($this->once())->method('setPublic');
        $responseMock->expects($this->once())->method('setVary')->with('Accept');
        $responseMock->expects($this->never())->method('setSharedMaxAge');
        $result = $this->visit(new CachedValue(new stdClass()));
        self::assertNotNull($result);
    }