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

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

Test the ContentTypeList visitor.
public testVisit ( ) : string
Результат string
    public function testVisit()
    {
        $visitor = $this->getVisitor();
        $generator = $this->getGenerator();
        $generator->startDocument(null);
        $contentTypeList = new ContentTypeList(array(), '/content/typegroups/2/types');
        $visitor->visit($this->getVisitorMock(), $generator, $contentTypeList);
        $result = $generator->endDocument(null);
        $this->assertNotNull($result);
        return $result;
    }