eZ\Bundle\EzPublishRestBundle\Tests\Functional\ContentTypeTest::testUpdateContentTypeGroup PHP 메소드

testUpdateContentTypeGroup() 공개 메소드

public testUpdateContentTypeGroup ( $contentTypeGroupHref ) : string
리턴 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;
    }