Commit c4722ff7 authored by Nicolas Dumazet's avatar Nicolas Dumazet

use directly type_class instead of compatibility getters


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41448 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 70f16a03
......@@ -407,12 +407,12 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
pt = self.getTypeTool()
# create module object portal type
object_type = pt.newContent('Geek Object', 'Base Type',
type_factory_method_id='addPerson')
type_class='Person')
self.failUnless(object_type is not None)
sequence.edit(object_ptype_id=object_type.getId())
# create module portal type
module_type = pt.newContent('Geek Module', 'Base Type',
type_factory_method_id='addFolder',
type_class='Folder',
type_filter_content_type=1,
type_allowed_content_type_list=('Geek Object',),
type_hidden_content_type_list=('Geek Object',),
......@@ -6846,7 +6846,7 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
dummy_type = type_provider.newContent(
portal_type='Base Type',
id='Dummy Type',
type_factory_method_id='addFolder',
type_class='Folder',
type_property_sheet_list=('Reference',),
type_base_category_list=('source',),
type_allowed_content_type_list=('Dummy Type',),
......
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