Commit 1761b190 authored by Jérome Perrin's avatar Jérome Perrin

testGUIwithSecurity: workaround a missing interaction on portal_property_sheets

parent df2bda5c
......@@ -152,6 +152,10 @@ class TestGUISecurity(ERP5TypeTestCase):
"""
self.portal.portal_property_sheets.Reference.reference_property.setReadPermission(
'Manage contents',)
# XXX setReadPermission has an interaction that will call
# portal.portal_types.resetDynamicDocumentsOnceAtTransactionBoundary()
# but this is not enough we need to:
self.portal.portal_components.resetOnceAtTransactionBoundary()
def stepResetPropertySecurity(self, sequence = None, sequence_list = None, **kw):
"""
......@@ -159,6 +163,10 @@ class TestGUISecurity(ERP5TypeTestCase):
"""
self.portal.portal_property_sheets.Reference.reference_property.setReadPermission(
'Access contents information')
# XXX setReadPermission has an interaction that will call
# portal.portal_types.resetDynamicDocumentsOnceAtTransactionBoundary()
# but this is not enough we need to:
self.portal.portal_components.resetOnceAtTransactionBoundary()
def test_01_relationFieldToInaccessibleObject(self):
"""
......
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