eZ\Publish\Core\REST\Server\Tests\Output\ValueObjectVisitor\SectionListTest::testSectionListVisitsChildren PHP Метод

testSectionListVisitsChildren() публичный Метод

Test if SectionList visitor visits the children.
    public function testSectionListVisitsChildren()
    {
        $visitor = $this->getVisitor();
        $generator = $this->getGenerator();
        $generator->startDocument(null);
        $sectionList = new SectionList(array(new Content\Section(), new Content\Section()), '/content/sections');
        $this->getVisitorMock()->expects($this->exactly(2))->method('visitValueObject')->with($this->isInstanceOf('eZ\\Publish\\API\\Repository\\Values\\Content\\Section'));
        $visitor->visit($this->getVisitorMock(), $generator, $sectionList);
    }