eZ\Publish\Core\REST\Client\Tests\Output\ValueObjectVisitor\SectionCreateStructTest::testVisit PHP Method

testVisit() public method

Tests the SectionCreateStruct visitor.
public testVisit ( ) : string
return string
    public function testVisit()
    {
        $visitor = $this->getVisitor();
        $generator = $this->getGenerator();
        $generator->startDocument(null);
        $sectionCreateStruct = new Content\SectionCreateStruct(array('identifier' => 'some-section', 'name' => 'Some Section'));
        $visitor->visit($this->getVisitorMock(), $generator, $sectionCreateStruct);
        $result = $generator->endDocument(null);
        $this->assertNotNull($result);
        return $result;
    }