Commit 5719b220 authored by Jérome Perrin's avatar Jérome Perrin

dms: check that webpage.getImplicitSuccessorValueList works from web site context

because relative URL calculations in referenced pages extractions is
different when the page is in the context of a web site, we also have to
test this case
parent 3b97bcb7
...@@ -1654,6 +1654,15 @@ return True ...@@ -1654,6 +1654,15 @@ return True
sorted([i.getReference() for i in img_list]), sorted([i.getReference() for i in img_list]),
) )
# same with the web page retrieved with getDocumentValue
successor_list = self.portal.web_site_module.test.getDocumentValue(
"P-WP-implicit.successor.value.list.test"
).getImplicitSuccessorValueList()
self.assertEqual(
sorted([s.getReference() for s in successor_list]),
sorted([i.getReference() for i in img_list]),
)
def checkWebSiteDocumentViewConsistency(self, portal_type, module_id="document_module"): def checkWebSiteDocumentViewConsistency(self, portal_type, module_id="document_module"):
""" """
Checks that the default view action of a <portal_type>, viewing from a web site, Checks that the default view action of a <portal_type>, viewing from a web site,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment