Add FTI for Discussion Item and test
svn path=/plone.app.discussion/trunk/; revision=27068
This commit is contained in:
@@ -63,7 +63,13 @@ class CommentTest(PloneTestCase):
|
||||
|
||||
def test_fti(self):
|
||||
# test that we can look up an FTI for Discussion Item
|
||||
pass
|
||||
|
||||
self.assert_("Discussion Item" in self.portal.portal_types.objectIds())
|
||||
|
||||
comment1 = createObject('plone.Comment')
|
||||
|
||||
fti = self.portal.portal_types.getTypeInfo(comment1)
|
||||
self.assertEquals('Discussion Item', fti.getTypeInfo(comment1).getId())
|
||||
|
||||
class RepliesTest(PloneTestCase):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user