Commit a939fd1b authored by Sebastien Robin's avatar Sebastien Robin

added a few methods in order to get tools


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@914 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ab37280f
...@@ -134,6 +134,12 @@ class ERP5TypeTestCase(PortalTestCase): ...@@ -134,6 +134,12 @@ class ERP5TypeTestCase(PortalTestCase):
def getCategoryTool(self): def getCategoryTool(self):
return getattr(self.getPortal(), 'portal_categories', None) return getattr(self.getPortal(), 'portal_categories', None)
def getWorkflowTool(self):
return getattr(self.getPortal(), 'portal_workflow', None)
def getCatalogTool(self):
return getattr(self.getPortal(), 'portal_catalog', None)
def getTypeTool(self): def getTypeTool(self):
return getattr(self.getPortal(), 'portal_types', None) return getattr(self.getPortal(), 'portal_types', None)
...@@ -143,6 +149,9 @@ class ERP5TypeTestCase(PortalTestCase): ...@@ -143,6 +149,9 @@ class ERP5TypeTestCase(PortalTestCase):
def getSqlConnection(self): def getSqlConnection(self):
return getattr(self.getPortal(), 'erp5_sql_connection', None) return getattr(self.getPortal(), 'erp5_sql_connection', None)
def getPortalId(self):
return self.getPortal().getId()
def setupERP5Site(business_template_list=(), app=None, portal_name=portal_name, quiet=0): def setupERP5Site(business_template_list=(), app=None, portal_name=portal_name, quiet=0):
......
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