Commit 3a7809b0 authored by Jérome Perrin's avatar Jérome Perrin

define getPreferenceTool on ERP5TypeTestCase class



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10099 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a3465c89
...@@ -50,9 +50,6 @@ class TestPreferences(ERP5TypeTestCase): ...@@ -50,9 +50,6 @@ class TestPreferences(ERP5TypeTestCase):
def getTitle(self): def getTitle(self):
return "Portal Preference" return "Portal Preference"
def getPreferenceTool(self) :
return self.getPortal().portal_preferences
def afterSetUp(self): def afterSetUp(self):
uf = self.getPortal().acl_users uf = self.getPortal().acl_users
uf._doAddUser('manager', '', ['Manager', 'Assignor'], []) uf._doAddUser('manager', '', ['Manager', 'Assignor'], [])
......
...@@ -357,6 +357,9 @@ class ERP5TypeTestCase(PortalTestCase): ...@@ -357,6 +357,9 @@ class ERP5TypeTestCase(PortalTestCase):
# Utility methods specific to ERP5Type # Utility methods specific to ERP5Type
def getTemplateTool(self): def getTemplateTool(self):
return getToolByName(self.getPortal(), 'portal_templates', None) return getToolByName(self.getPortal(), 'portal_templates', None)
def getPreferenceTool(self) :
return getToolByName(self.getPortal(), 'portal_preferences', None)
def getTrashTool(self): def getTrashTool(self):
return getToolByName(self.getPortal(), 'portal_trash', None) return getToolByName(self.getPortal(), 'portal_trash', None)
......
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