* [MOD] Improved repositories behaviour and code refactoring.

* [ADD] Added more unit tests. Work in progress.
* [FIX] Fixed wrong behaviour when updating an LDAP user. Related #950. Thanks to @Fizard for the feedback.
This commit is contained in:
nuxsmin
2018-06-12 01:36:28 +02:00
parent 5a3834761a
commit 0096963131
117 changed files with 2789 additions and 1621 deletions

View File

@@ -63,8 +63,8 @@ class UserGroupController extends ControllerBase implements CrudControllerInterf
/**
* Search action
*
* @throws \Psr\Container\ContainerExceptionInterface
* @throws \Psr\Container\NotFoundExceptionInterface
* @throws \SP\Core\Exceptions\ConstraintException
* @throws \SP\Core\Exceptions\QueryException
*/
public function searchAction()
{
@@ -83,6 +83,8 @@ class UserGroupController extends ControllerBase implements CrudControllerInterf
* getSearchGrid
*
* @return $this
* @throws \SP\Core\Exceptions\ConstraintException
* @throws \SP\Core\Exceptions\QueryException
*/
protected function getSearchGrid()
{
@@ -122,11 +124,12 @@ class UserGroupController extends ControllerBase implements CrudControllerInterf
}
/**
* Sets view data for displaying user's data
* Sets view data for displaying user group's data
*
* @param $userGroupId
* @throws \Psr\Container\ContainerExceptionInterface
* @throws \Psr\Container\NotFoundExceptionInterface
*
* @throws \SP\Core\Exceptions\ConstraintException
* @throws \SP\Core\Exceptions\QueryException
*/
protected function setViewData($userGroupId = null)
{
@@ -156,6 +159,7 @@ class UserGroupController extends ControllerBase implements CrudControllerInterf
* Edit action
*
* @param $id
*
* @throws \Psr\Container\ContainerExceptionInterface
*/
public function editAction($id)
@@ -185,6 +189,7 @@ class UserGroupController extends ControllerBase implements CrudControllerInterf
* Delete action
*
* @param $id
*
* @throws \Psr\Container\ContainerExceptionInterface
* @throws \Psr\Container\NotFoundExceptionInterface
*/
@@ -264,6 +269,7 @@ class UserGroupController extends ControllerBase implements CrudControllerInterf
* Saves edit action
*
* @param $id
*
* @throws \Psr\Container\ContainerExceptionInterface
* @throws \Psr\Container\NotFoundExceptionInterface
*/
@@ -303,6 +309,7 @@ class UserGroupController extends ControllerBase implements CrudControllerInterf
* View action
*
* @param $id
*
* @throws \Psr\Container\ContainerExceptionInterface
*/
public function viewAction($id)