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

testVisit() public method

Test the UserGroupList visitor.
public testVisit ( ) : string
return string
    public function testVisit()
    {
        $visitor = $this->getVisitor();
        $generator = $this->getGenerator();
        $generator->startDocument(null);
        $userGroupList = new UserGroupList(array(), '/some/path');
        $visitor->visit($this->getVisitorMock(), $generator, $userGroupList);
        $result = $generator->endDocument(null);
        $this->assertNotNull($result);
        return $result;
    }