public function testUpdateContentTypeDraftThrowsInvalidArgumentExceptionDuplicateRemoteId() { $contentTypeDraft = $this->createDraftContentType(); /* BEGIN: Use Case */ // $contentTypeDraft contains a ContentTypeDraft with identifier 'blog-post' $contentTypeService = $this->repository->getContentTypeService(); $typeUpdate = $contentTypeService->newContentTypeUpdateStruct(); $typeUpdate->remoteId = 'a3d405b81be900468eb153d774f4f0d2'; // Throws exception, since remote ID of type "folder" is used $contentTypeService->updateContentTypeDraft($contentTypeDraft, $typeUpdate); /* END: Use Case */ }