Skip to content

Commit

Permalink
Add test for Related Items behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
hvelarde committed Sep 22, 2017
1 parent 124f1f1 commit 9b624dd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/collective/cover/tests/test_cover.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ def test_exclude_from_navigation_behavior(self):
def test_locking_behavior(self):
self.assertTrue(ILocking.providedBy(self.cover))

def test_relateditems_behavior(self):
from plone.app.relationfield.behavior import IRelatedItems
self.assertTrue(IRelatedItems.providedBy(self.cover))

def test_cover_selectable_as_folder_default_view(self):
self.folder.setDefaultPage('c1')
self.assertEqual(self.folder.getDefaultPage(), 'c1')
Expand Down Expand Up @@ -158,5 +162,3 @@ def test_searchabletext_indexer(self):
searchableText(self.cover)(),
u'c1 Lorem ipsum Neque porro 01234 56789'
)

# TODO: add test for plone.app.relationfield.behavior.IRelatedItems

0 comments on commit 9b624dd

Please sign in to comment.