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

testVisit() public method

Tests the LocationUpdateStruct visitor.
public testVisit ( ) : string
return string
    public function testVisit()
    {
        $visitor = $this->getVisitor();
        $generator = $this->getGenerator();
        $generator->startDocument(null);
        $locationUpdateStruct = new LocationUpdateStruct();
        $locationUpdateStruct->priority = 0;
        $locationUpdateStruct->remoteId = 'remote-id';
        $locationUpdateStruct->sortField = Location::SORT_FIELD_PATH;
        $locationUpdateStruct->sortOrder = Location::SORT_ORDER_ASC;
        $visitor->visit($this->getVisitorMock(), $generator, $locationUpdateStruct);
        $result = $generator->endDocument(null);
        $this->assertNotNull($result);
        return $result;
    }