diff --git a/product/ERP5OOo/tests/testIngestion.py b/product/ERP5OOo/tests/testIngestion.py
index 1888ef6a4f4d460764373e5d2c9acd0e35a13431..9949f959bd3f6543f07ef1b75dabc024a0e180f5 100644
--- a/product/ERP5OOo/tests/testIngestion.py
+++ b/product/ERP5OOo/tests/testIngestion.py
@@ -107,6 +107,7 @@ class TestIngestion(ERP5TypeTestCase):
     self.setSystemPreference()
     self.setSimulatedNotificationScript()
     self.setTools()
+    self.setContentTypeRegistry()
 
   def beforeTearDown(self):
     self.portal.portal_caches.clearAllCache()
@@ -139,6 +140,16 @@ class TestIngestion(ERP5TypeTestCase):
     if getattr(self.portal, 'portal_transforms', None) is None:
       self.portal.manage_addProduct['PortalTransforms'].manage_addTool(type='Portal Transforms')
 
+  def setContentTypeRegistry(self):
+    content_type_registry = self.portal.content_type_registry
+    predicate_id = 'Ingested Document'
+    if predicate_id not in content_type_registry.predicate_ids:
+      content_type_registry.addPredicate(predicate_id, 'extension')
+      content_type_registry.predicates[predicate_id][0].edit('emx')
+      content_type_registry.assignTypeName(predicate_id,
+                                            'Document Ingestion Message')
+      content_type_registry.reorderPredicate(predicate_id, 0)
+
   ##################################
   ##  Useful methods
   ##################################