eZ\Publish\Core\REST\Server\Tests\Output\ValueObjectVisitor\CachedValueTest::testVisitLocationCache PHP Метод

testVisitLocationCache() публичный Метод

    public function testVisitLocationCache()
    {
        $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(), array('locationId' => 'testLocationId')));
        self::assertNotNull($result);
    }