Commit fbb51462 authored by Yusei Tahara's avatar Yusei Tahara

Use portal_contribution_registry instead of content_type_registry


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20612 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 469e76f1
......@@ -995,7 +995,7 @@ class TestIngestion(ERP5TypeTestCase):
"""
if not run: return
if not quiet: printAndLog('test_02_FileExtensionRegistry')
reg = self.portal.content_type_registry
reg = self.portal.portal_contribution_registry
correct_type_mapping = {
'doc' : 'Text',
'txt' : 'Text',
......@@ -1018,7 +1018,8 @@ class TestIngestion(ERP5TypeTestCase):
}
for type, portal_type in correct_type_mapping.items():
file_name = 'aaa.' + type
self.assertEquals(reg.findTypeName(file_name, None, None), portal_type)
self.assertEquals(reg.findPortalTypeName(file_name, None, None),
portal_type)
def test_03_TextDoc(self, quiet=QUIET, run=RUN_ALL_TEST):
"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment