Commit 22c5db18 authored by Gabriel Monnerat's avatar Gabriel Monnerat

Add new test

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44443 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1a5123c5
......@@ -200,3 +200,17 @@ class TestUNGSecurity(ERP5TypeTestCase):
self.login("ung_user2")
preference_dict = json.loads(self.portal.Base_getPreferencePathList())
self.assertEquals(preference_dict, {u'preference': u'portal_preferences/2'})
def testWebPage_shareDocument(self):
""" """
self.login("ung_user")
self.portal.ERP5Site_createNewWebDocument("web_page_template")
self.stepTic()
web_page = self.portal.portal_catalog.getResultValue(portal_type="Web Page")
self.assertEquals(web_page.getValidationState(), "draft")
response = web_page.WebPage_shareDocument()
self.stepTic()
self.assertEquals(response, "".join((self.portal.absolute_url(),
"/?key=",
web_page.getReference())))
self.assertEquals(web_page.getValidationState(), "shared")
\ No newline at end of file
27
\ No newline at end of file
28
\ No newline at end of file
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