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

testVisit() public method

Test the ContentObjectStates visitor.
public testVisit ( ) : string
return string
    public function testVisit()
    {
        $visitor = $this->getVisitor();
        $generator = $this->getGenerator();
        $generator->startDocument(null);
        // @todo Improve this test with values...
        $stateList = new ContentObjectStates(array());
        $visitor->visit($this->getVisitorMock(), $generator, $stateList);
        $result = $generator->endDocument(null);
        $this->assertNotNull($result);
        return $result;
    }