Commit 1314b1d8 authored by Jérome Perrin's avatar Jérome Perrin

It was impossible to rename a base category, but this was apparently only on my side.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17375 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 957893f6
...@@ -1016,6 +1016,15 @@ class TestCMFCategory(ERP5TypeTestCase): ...@@ -1016,6 +1016,15 @@ class TestCMFCategory(ERP5TypeTestCase):
bc.getCategoryChildTitleItemList(checked_permission=checked_permission, bc.getCategoryChildTitleItemList(checked_permission=checked_permission,
cache=0)) cache=0))
def test_renameBaseCategory(self):
bc = self.portal.portal_categories.newContent(
portal_type='Base Category',
id='first_id')
get_transaction().commit()
self.tic()
bc.setId('new_id')
self.assertEquals('new_id', bc.getId())
def test_suite(): def test_suite():
suite = unittest.TestSuite() suite = unittest.TestSuite()
......
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