def setUp(self): from Products.CMFCore.ActionsTool import ActionsTool site = DummySite('site') site._setObject('portal_actions', ActionsTool('portal_actions')) self._obj = site.portal_actions self._BODY = _ACTIONSTOOL_BODY
def setUp(self): from Products.CMFCore.ActionsTool import ActionsTool PlacelessSetup.setUp(self) zcml.load_config('meta.zcml', Products.Five) zcml.load_config('configure.zcml', Products.CMFCore.exportimport) site = DummySite('site') site._setObject('portal_actions', ActionsTool('portal_actions')) self._obj = site.portal_actions self._XML = _ACTIONSTOOL_XML
def setUp(self): import Products.CMFCore.exportimport from Products.CMFCore.ActionsTool import ActionsTool BodyAdapterTestCase.setUp(self) zcml.load_config('configure.zcml', Products.CMFCore.exportimport) site = DummySite('site') site._setObject('portal_actions', ActionsTool('portal_actions')) self._obj = site.portal_actions self._BODY = _ACTIONSTOOL_BODY
def setUp(self): SecurityRequestTest.setUp(self) root = self.root root._setObject('portal_actions', ActionsTool()) root._setObject('portal_url', URLTool()) root._setObject('foo', URLTool()) root._setObject('portal_membership', MembershipTool()) root._setObject('portal_types', TypesTool()) self.tool = root.portal_actions self.tool.action_providers = ('portal_actions', )
def setUp(self): from Products.CMFCore.interfaces import IActionsTool from Products.CMFCore.ActionsTool import ActionsTool BodyAdapterTestCase.setUp(self) site = DummySite('site') site._setObject('portal_actions', ActionsTool('portal_actions')) self._obj = site.portal_actions self._BODY = _ACTIONSTOOL_BODY # utility registration sm = getSiteManager() sm.registerUtility(self._obj, IActionsTool)
def setUp(self): from Products.CMFCore.ActionsTool import ActionsTool self._obj = ActionsTool('portal_actions') self._BODY = _ACTIONSTOOL_BODY getSiteManager().registerUtility(self._obj, IActionsTool)
def _makeOne(self, *args, **kw): from Products.CMFCore.ActionsTool import ActionsTool return ActionsTool(*args, **kw)