Commit 24639cfc authored by Kristian Rother's avatar Kristian Rother

Changed a logic error in the Favourites Menu test.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11275 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 530ca999
...@@ -131,11 +131,12 @@ class TestERP5Core(ERP5TypeTestCase, ZopeTestCase.Functional): ...@@ -131,11 +131,12 @@ class TestERP5Core(ERP5TypeTestCase, ZopeTestCase.Functional):
Test that Manage members is not an entry in the My Favourites menu. Test that Manage members is not an entry in the My Favourites menu.
""" """
if not run: return if not run: return
portal_action = getattr(self.getPortal(), 'portal_actions', None) portal_actions = getattr(self.getPortal(), 'portal_actions', None)
global_action_list = portal_action.listFilteredActionsFor()['global'] global_action_list = portal_actions.listFilteredActionsFor()['global']
action_name_list = [] action_name_list = []
for action in global_action_list: for action in global_action_list:
action_name_list.append(action['title']) if(action['visible']):
action_name_list.append(action['title'])
self.assertTrue('Create Module' in action_name_list) self.assertTrue('Create Module' in action_name_list)
......
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