Commit df4a29b8 authored by Mayoro Diagne's avatar Mayoro Diagne

testing view() method of whole site documentation object and business_tempaltes

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22702 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 75c9a7ea
......@@ -66,10 +66,10 @@ class TestDocumentationHelper(ERP5TypeTestCase):
site_do = ERP5SiteDocumentationHelper(site_uri).__of__(self.portal)
self.assertEquals(len(site_do.getSectionList()), 1)
#just erp5_core, erp5_mysql_innodb_catalog, erp5_documentation
#, erp5_xhtml_style and erp5_ui_test are installed
#, erp5_xhtml_style and erp5_ui_test are installed
self.assertEquals(len(site_do.getBusinessTemplateIdList()), 5)
self.portal.portal_classes.getDocumentationHelper(
'ERP5SiteDocumentationHelper', site_uri)
'ERP5SiteDocumentationHelper', site_uri).view()
#test the report mode of the documentation of the whole site
self.portal.REQUEST['class_name'] = 'ERP5SiteDocumentationHelper'
self.portal.REQUEST['uri'] = site_uri
......@@ -88,7 +88,7 @@ class TestDocumentationHelper(ERP5TypeTestCase):
self.assertTrue('foo_module' in bt_do.getModuleIdList())
self.assertTrue('bar_module' in bt_do.getModuleIdList())
self.portal.portal_classes.getDocumentationHelper(
'BusinessTemplateDocumentationHelper', bt_uri)
'BusinessTemplateDocumentationHelper', bt_uri).view()
self.portal.REQUEST['class_name'] = 'ERP5SiteDocumentationHelper'
self.portal.REQUEST['uri'] = bt_uri
self.portal.portal_classes.DocumentationHelper_viewReport()
......
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