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

testVisit() public method

Test the LocationList visitor.
public testVisit ( ) : string
return string
    public function testVisit()
    {
        $visitor = $this->getVisitor();
        $generator = $this->getGenerator();
        $generator->startDocument(null);
        // @todo coverage test with a list of values
        $locationList = new LocationList(array(), '/content/objects/42/locations');
        $visitor->visit($this->getVisitorMock(), $generator, $locationList);
        $result = $generator->endDocument(null);
        $this->assertNotNull($result);
        return $result;
    }