eZ\Publish\Core\REST\Client\Tests\Output\ValueObjectVisitor\RestContentMetadataUpdateStruct::testVisitNoOwnerUpdate PHP Method

testVisitNoOwnerUpdate() public method

Tests the Owner element attributes.
    public function testVisitNoOwnerUpdate()
    {
        $visitor = $this->getVisitor();
        $generator = $this->getGenerator();
        $generator->startDocument(null);
        $values = $this->getValidValues();
        unset($values['ownerId']);
        $sectionCreatestruct = new RestContentMetadataUpdateStruct($values);
        $visitor->visit($this->getVisitorMock(), $generator, $sectionCreatestruct);
        $result = $generator->endDocument(null);
        $this->assertXMLTag(array('tag' => 'Owner', 'attributes' => array('media-type' => 'application/vnd.ez.api.User+xml')), $result, 'Invalid attributes for <Owner> element.', false);
    }