eZ\Publish\Core\REST\Server\Tests\Output\ValueObjectVisitor\RestObjectStateTest::testResultContainsObjectStateAttributes PHP Method

testResultContainsObjectStateAttributes() public method

Test if result contains ObjectState element attributes.
    public function testResultContainsObjectStateAttributes($result)
    {
        $this->assertXMLTag(array('tag' => 'ObjectState', 'attributes' => array('media-type' => 'application/vnd.ez.api.ObjectState+xml', 'href' => '/content/objectstategroups/21/objectstates/42')), $result, 'Invalid <ObjectState> attributes.', false);
    }