eZ\Publish\Core\REST\Server\Tests\Output\ValueObjectVisitor\RestRelationTest::testResultContainsRelationAttributes PHP Method

testResultContainsRelationAttributes() public method

Test if result contains Relation element attributes.
    public function testResultContainsRelationAttributes($result)
    {
        $this->assertXMLTag(array('tag' => 'Relation', 'attributes' => array('media-type' => 'application/vnd.ez.api.Relation+xml', 'href' => '/content/objects/1/versions/1/relations/42')), $result, 'Invalid <Relation> attributes.', false);
    }