eZ\Bundle\EzPublishRestBundle\Tests\Functional\ContentTypeTest::testUpdateContentTypeGroup PHP Method

testUpdateContentTypeGroup() public method

public testUpdateContentTypeGroup ( $contentTypeGroupHref ) : string
return string the updated content type href
    public function testUpdateContentTypeGroup($contentTypeGroupHref)
    {
        $body = <<<XML
<?xml version="1.0" encoding="UTF-8"?>
<ContentTypeGroupInput>
  <identifier>testUpdateContentTypeGroup</identifier>
</ContentTypeGroupInput>
XML;
        $request = $this->createHttpRequest('PATCH', $contentTypeGroupHref, 'ContentTypeGroupInput+xml', 'ContentTypeGroup+json');
        $request->setContent($body);
        $response = $this->sendHttpRequest($request);
        self::assertHttpResponseCodeEquals($response, 200);
        return $contentTypeGroupHref;
    }