eZ\Bundle\EzPublishRestBundle\Tests\Functional\ContentTest::testUpdateVersion PHP Method

testUpdateVersion() public method

public testUpdateVersion ( string $restContentVersionHref )
$restContentVersionHref string /content/objects//versions>/
    public function testUpdateVersion($restContentVersionHref)
    {
        $xml = <<<XML
<VersionUpdate>
    <fields>
        <field>
            <fieldDefinitionIdentifier>name</fieldDefinitionIdentifier>
            <languageCode>eng-GB</languageCode>
            <fieldValue>testUpdateVersion</fieldValue>
        </field>
    </fields>
</VersionUpdate>
XML;
        $request = $this->createHttpRequest('PATCH', $restContentVersionHref, 'VersionUpdate+xml', 'Version+json');
        $request->setContent($xml);
        $response = $this->sendHttpRequest($request);
        self::assertHttpResponseCodeEquals($response, 200);
    }