eZ\Publish\Core\Repository\Tests\Service\Integration\ContentTypeBase::testUpdateContentTypeDraftThrowsInvalidArgumentExceptionDuplicateRemoteId PHP Method

testUpdateContentTypeDraftThrowsInvalidArgumentExceptionDuplicateRemoteId() public method

Test for the updateContentTypeDraft() method.
    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 */
    }
ContentTypeBase