This tests updating link integrity information for all site content, i.e. after migrating from a previous version. First we create two sample links and remove the generated references afterwards: >>> self.setRoles(('Manager',)) >>> self.setText(portal.doc1, 'a document') >>> self.setText(portal.doc2, 'a document') >>> portal.doc1.deleteReferences(relationship='isReferencing') >>> portal.doc2.deleteReferences(relationship='isReferencing') Just to make sure, we check that there are no references from or to these documents at this point: >>> self.assertEqual(portal.doc1.getReferences(), []) >>> self.assertEqual(portal.doc2.getReferences(), []) An update of link integrity information for all content is triggered by browsing a specific url: >>> browser = self.getBrowser(loggedIn=True) >>> browser.open('http://nohost/plone/updateLinkIntegrityInformation') >>> browser.getControl('Update').click() >>> browser.contents '...