public function testRenameGroup()
 {
     // changement de nom d'un groupe
     jAcl2DbUserGroup::updateGroup($this->grpId3, 'newgroup3');
     $this->groups[2]['name'] = 'newgroup3';
     $this->assertTableContainsRecords('jacl2_group', $this->groups);
 }
Exemplo n.º 2
0
 function changename()
 {
     $rep = $this->getResponse('redirect');
     $rep->action = 'jacl2_admin~groups:index';
     $id = $this->param('group_id');
     $name = $this->param('newname');
     if ($id && $name != '') {
         jAcl2DbUserGroup::updateGroup($id, $name);
     }
     return $rep;
 }
Exemplo n.º 3
0
 function changename()
 {
     $rep = $this->getResponse('redirect');
     $rep->action = 'jacl2db_admin~groups:index';
     $id = $this->param('group_id');
     $name = $this->param('newname');
     if ($id != '' && $name != '') {
         jAcl2DbUserGroup::updateGroup($id, $name);
         jMessage::add(jLocale::get('acl2.message.group.rename.ok'), 'ok');
     }
     return $rep;
 }