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

testVisit() public method

public testVisit ( )
    public function testVisit()
    {
        $responseMock = $this->getResponseMock();
        $responseMock->expects($this->once())->method('setPublic');
        $responseMock->expects($this->at(1))->method('setVary')->with('Accept');
        $responseMock->expects($this->once())->method('setSharedMaxAge')->with($this->defaultOptions['content.default_ttl']);
        $responseMock->expects($this->at(3))->method('setVary')->with('X-User-Hash', false);
        $result = $this->visit(new CachedValue(new stdClass()));
        self::assertNotNull($result);
    }