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

testVisit() public method

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