eZ\Publish\Core\REST\Client\Tests\Output\ValueObjectVisitor\RoleCreateStructTest::testVisit PHP Method

testVisit() public method

Tests the RoleCreateStruct visitor.
public testVisit ( ) : string
return string
    public function testVisit()
    {
        $visitor = $this->getVisitor();
        $generator = $this->getGenerator();
        $generator->startDocument(null);
        $roleCreateStruct = new User\RoleCreateStruct('some-role');
        $visitor->visit($this->getVisitorMock(), $generator, $roleCreateStruct);
        $result = $generator->endDocument(null);
        $this->assertNotNull($result);
        return $result;
    }