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

testVisit() public method

Tests the Limitation visitor.
public testVisit ( ) : string
return string
    public function testVisit()
    {
        $visitor = $this->getVisitor();
        $generator = $this->getGenerator();
        $generator->startDocument(null);
        $contentTypeLimitation = new ContentTypeLimitation();
        $contentTypeLimitation->limitationValues = array(1, 2, 3);
        $visitor->visit($this->getVisitorMock(), $generator, $contentTypeLimitation);
        $result = $generator->endDocument(null);
        $this->assertNotNull($result);
        return $result;
    }