eZ\Publish\Core\REST\Common\Tests\Output\ValueObjectVisitorDispatcherTest::testVisitValueObjectParentMatch PHP Method

testVisitValueObjectParentMatch() public method

    public function testVisitValueObjectParentMatch()
    {
        $data = new ValueObject();
        $valueObjectVisitor = $this->getValueObjectVisitorMock();
        $valueObjectVisitor->expects($this->at(0))->method('visit')->with($this->getOutputVisitorMock(), $this->getOutputGeneratorMock(), $data);
        $dispatcher = $this->getValueObjectDispatcher();
        $dispatcher->addVisitor('stdClass', $valueObjectVisitor);
        $dispatcher->visit($data);
    }