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

testVisitViewCacheDisabled() public method

    public function testVisitViewCacheDisabled()
    {
        // disable caching globally
        $this->options = array_merge($this->defaultOptions, array('content.view_cache' => false));
        $this->getResponseMock()->expects($this->never())->method('setPublic');
        $result = $this->visit(new CachedValue(new stdClass()));
        self::assertNotNull($result);
    }