test discussion control panel view.
svn path=/plone.app.discussion/trunk/; revision=33314
This commit is contained in:
parent
6ca20c7514
commit
3c22930ba2
@ -16,10 +16,17 @@ class RegistryTest(PloneTestCase):
|
||||
layer = DiscussionLayer
|
||||
|
||||
def afterSetUp(self):
|
||||
self.loginAsPortalOwner()
|
||||
# Set up the registry
|
||||
self.registry = Registry()
|
||||
self.registry.registerInterface(IDiscussionSettings)
|
||||
|
||||
def test_discussion_controlpanel_view(self):
|
||||
view = getMultiAdapter((self.portal, self.portal.REQUEST),
|
||||
name="discussion-settings")
|
||||
view = view.__of__(self.portal)
|
||||
self.failUnless(view())
|
||||
|
||||
def test_discussion_in_controlpanel(self):
|
||||
# Check if discussion is in the control panel
|
||||
self.controlpanel = getToolByName(self.portal, "portal_controlpanel")
|
||||
|
Loading…
Reference in New Issue
Block a user