public function testUpdateContentTypeDraft($contentTypeDraftHref) { $content = <<<XML <?xml version="1.0" encoding="UTF-8"?> <ContentTypeUpdate> <names> <value languageCode="eng-GB">testUpdateContentTypeDraft</value> </names> </ContentTypeUpdate> XML; $request = $this->createHttpRequest('PATCH', $contentTypeDraftHref, 'ContentTypeUpdate+xml', 'ContentTypeInfo+json'); $request->setContent($content); $response = $this->sendHttpRequest($request); self::assertHttpResponseCodeEquals($response, 200); }