From 24639cfcfb0c5b5eb12d741f5e7746796254262c Mon Sep 17 00:00:00 2001
From: Kristian Rother <kr@nexedi.com>
Date: Mon, 13 Nov 2006 11:11:27 +0000
Subject: [PATCH] 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
---
 product/ERP5/tests/testERP5Core.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/product/ERP5/tests/testERP5Core.py b/product/ERP5/tests/testERP5Core.py
index aa6929e1d8..f57b88ad07 100644
--- a/product/ERP5/tests/testERP5Core.py
+++ b/product/ERP5/tests/testERP5Core.py
@@ -131,11 +131,12 @@ class TestERP5Core(ERP5TypeTestCase, ZopeTestCase.Functional):
       Test that Manage members is not an entry in the My Favourites menu.
     """
     if not run: return
-    portal_action = getattr(self.getPortal(), 'portal_actions', None)
-    global_action_list = portal_action.listFilteredActionsFor()['global']
+    portal_actions = getattr(self.getPortal(), 'portal_actions', None)
+    global_action_list = portal_actions.listFilteredActionsFor()['global']
     action_name_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)
 
-- 
2.30.9