eZ\Publish\Core\REST\Server\Tests\Output\ValueObjectVisitor\ContentTypeInfoListTest::testContentTypeInfoListVisitsChildren PHP Method

testContentTypeInfoListVisitsChildren() public method

Test if ContentTypeInfoList visitor visits the children.
    public function testContentTypeInfoListVisitsChildren()
    {
        $visitor = $this->getVisitor();
        $generator = $this->getGenerator();
        $generator->startDocument(null);
        $contentTypeInfoList = new ContentTypeInfoList(array(new ContentType\ContentType(array('fieldDefinitions' => array())), new ContentType\ContentType(array('fieldDefinitions' => array()))), '/content/typegroups/2/types');
        $this->getVisitorMock()->expects($this->exactly(2))->method('visitValueObject')->with($this->isInstanceOf('eZ\\Publish\\Core\\REST\\Server\\Values\\RestContentType'));
        $visitor->visit($this->getVisitorMock(), $generator, $contentTypeInfoList);
    }