public function testRemoveFieldDefinitionThrowsUnauthorizedException()
{
$contentTypeDraft = $this->createDraftContentType();
$bodyField = $contentTypeDraft->getFieldDefinition('body');
// Set anonymous as current user
$this->repository->setCurrentUser($this->getStubbedUser(10));
$this->repository->getContentTypeService()->removeFieldDefinition($contentTypeDraft, $bodyField);
}