/**
  * Löscht eine CollectionRole.
  */
 public function deleteAction()
 {
     try {
         $collectionRoleModel = new Admin_Model_CollectionRole($this->getRequest()->getParam('roleid', ''));
         $collectionRoleModel->delete();
         $collectionRoleModel->getObject()->getDisplayName();
         $message = $this->view->translate('admin_collectionroles_delete', $collectionRoleModel->getObject()->getName());
         return $this->_redirectTo('index', $message);
     } catch (Application_Exception $e) {
         return $this->_redirectToAndExit('index', array('failure' => $e->getMessage()));
     }
 }
 public function testSetVisibilityFalse()
 {
     $model = new Admin_Model_CollectionRole($this->collectionRoleId);
     $collectionRole = $model->getObject();
     $this->assertEquals(1, $collectionRole->getVisible());
     $model->setVisibility(false);
     $collectionRole = new Opus_CollectionRole($this->collectionRoleId);
     $this->assertEquals(0, $collectionRole->getVisible());
 }