public function testContentTypeGroupListVisitsChildren() { $visitor = $this->getVisitor(); $generator = $this->getGenerator(); $generator->startDocument(null); $contentTypeGroupList = new ContentTypeGroupList(array(new ContentType\ContentTypeGroup(), new ContentType\ContentTypeGroup())); $this->getVisitorMock()->expects($this->exactly(2))->method('visitValueObject')->with($this->isInstanceOf('eZ\\Publish\\API\\Repository\\Values\\ContentType\\ContentTypeGroup')); $visitor->visit($this->getVisitorMock(), $generator, $contentTypeGroupList); }