summaryrefslogtreecommitdiffstats
path: root/tests/lib/user
Commit message (Collapse)AuthorAgeFilesLines
* Move tests/ to PSR-4 (#24731)Joas Schilling2016-05-207-1698/+0
| | | | | | | | | | | | | | | | | | | | * Move a-b to PSR-4 * Move c-d to PSR-4 * Move e+g to PSR-4 * Move h-l to PSR-4 * Move m-r to PSR-4 * Move s-u to PSR-4 * Move files/ to PSR-4 * Move remaining tests to PSR-4 * Remove Test\ from old autoloader
* Merge pull request #24660 from owncloud/no-token-login-for-disabled-usersVincent Petry2016-05-191-0/+32
|\ | | | | don't allow token login for disabled users
| * don't allow token login for disabled usersChristoph Wurst2016-05-181-0/+32
| |
* | Fix renamed classJoas Schilling2016-05-191-3/+3
| |
* | Fix namespace in user/Joas Schilling2016-05-194-5/+13
|/
* a single token provider sufficesChristoph Wurst2016-05-181-11/+11
|
* fix PHPDoc and other minor issuesChristoph Wurst2016-05-111-10/+17
|
* PHPDoc and other minor fixesChristoph Wurst2016-05-111-12/+19
|
* increase token column widthChristoph Wurst2016-05-111-2/+2
| | | | add some range to time() assertions
* Fix existing testsChristoph Wurst2016-05-111-97/+115
|
* Add \OC\User\BackendRoeland Jago Douma2016-05-103-39/+39
| | | | | Since some apps (ldap et al) still depend on OC_User_Backend this seemed like the cleanest approach.
* Move OC_User_Database to \OC\User\DatabaseRoeland Jago Douma2016-05-102-5/+5
|
* Add occ commands to enable and disable a user + a disabled user can no ↵Thomas Müller2016-05-021-4/+34
| | | | longer login - fixes #23838
* Introduce IUser::setEMailAddress and add hook mechanismThomas Müller2016-01-201-1/+2
|
* Assign DB group for unit testsLukas Reschke2016-01-041-0/+4
|
* Move regeneration of session ID into session classesLukas Reschke2016-01-041-1/+15
| | | | There were code paths that nowadays call ISession::login directly thus bypassing the desired regeneration of the session ID. This moves the session regeneration deeper into the session handling and thus ensures that it is always called. Furthermore, I also added the session regeneration to the remember me cookie plus added some test case expectations for this.
* Fix endless recursionThomas Müller2015-12-021-1/+1
|
* Fix getCloudIdThomas Müller2015-12-021-1/+7
|
* Adding unit test for User::getCloudId()Thomas Müller2015-12-021-0/+18
|
* Adding more test suites to group DBThomas Müller2015-11-301-2/+23
|
* Apply DB group annotation ...Thomas Müller2015-11-301-0/+5
|
* Move dummy backend to Tests namespaceLukas Reschke2015-09-225-71/+71
|
* introduce names for user backends - IUserBackendMorris Jobke2014-12-192-2/+12
| | | | * LDAP with multiple servers also proved backendName
* fix testsBernhard Posselt2014-12-171-4/+2
|
* use two tests instead of oneBernhard Posselt2014-12-171-4/+18
|
* add a isLoggedIn method to the usersession and deprecate the isLoggedIn ↵Bernhard Posselt2014-12-171-0/+28
| | | | method on the api
* Add filter for 'backend' to user REST routeLukas Reschke2014-12-101-0/+11
| | | | | | | | This adds a "backend" type filter to the index REST route which is a pre-requisite for https://github.com/owncloud/core/issues/12620 For example when calling `index.php/settings/users/users?offset=0&limit=10&gid=&pattern=&backend=OC_User_Database` only users within the backend `OC_User_Database` would be shown. (requires sending a CSRF token as well) Depends upon https://github.com/owncloud/core/pull/12711
* Merge pull request #12711 from owncloud/add-backend-to-rest-indexLukas Reschke2014-12-101-0/+7
|\ | | | | Expose backend type via REST API
| * Expose backend type via REST APILukas Reschke2014-12-091-0/+7
| | | | | | | | | | | | | | | | | | This change will expose the user backend via the REST API which is a pre-requisite for https://github.com/owncloud/core/issues/12620. For example: ````json [{"name":"9707A09E-CA9A-4ABE-A66A-3F632F16C409","displayname":"Document Conversion User Account","groups":[],"subadmin":[],"quota":"default","storageLocation":"\/Users\/lreschke\/Programming\/core\/data\/9707A09E-CA9A-4ABE-A66A-3F632F16C409","lastLogin":0,"backend":"OCA\\user_ldap\\USER_LDAP"},{"name":"ED86733E-745C-4E4D-90CB-278A9737DB3C","displayname":"Hacker","groups":[],"subadmin":[],"quota":"default","storageLocation":"\/Users\/lreschke\/Programming\/core\/data\/ED86733E-745C-4E4D-90CB-278A9737DB3C","lastLogin":0,"backend":"OCA\\user_ldap\\USER_LDAP"},{"name":"71CDF45B-E125-450D-983C-D9192F36EC88","displayname":"admin","groups":[],"subadmin":[],"quota":"default","storageLocation":"\/Users\/lreschke\/Programming\/core\/data\/71CDF45B-E125-450D-983C-D9192F36EC88","lastLogin":0,"backend":"OCA\\user_ldap\\USER_LDAP"},{"name":"admin","displayname":"admin","groups":["admin"],"subadmin":[],"quota":"default","storageLocation":"\/Users\/lreschke\/Programming\/core\/data\/admin","lastLogin":"1418057287","backend":"OC_User_Database"},{"name":"test","displayname":"test","groups":[],"subadmin":[],"quota":"default","storageLocation":"\/Users\/lreschke\/Programming\/core\/data\/test","lastLogin":0,"backend":"OC_User_Database"}] ```
* | reduce OC_Preferences, OC_Config and \OCP\Config usageMorris Jobke2014-12-081-3/+3
| | | | | | | | | | | | | | | | | | | | * files_encryption * files_versions * files_trashbin * tests * status.php * core * server container
* | migrate \OC\AllConfig to \OCP\IConfigMorris Jobke2014-12-081-2/+1
| |
* | Extract interaction with config.php into SystemConfigMorris Jobke2014-12-081-2/+11
|/ | | | | | * introduce SystemConfig to avoid DI circle (used by database connection which is itself needed by AllConfig that itself contains the methods to access the config.php which then would need the database connection - did you get it? ;)) * use DI container and use that method in legacy code paths (for easier refactoring later) * create and use getSystemConfig instead of query() in DI container
* Make remaining files extend the test baseJoas Schilling2014-11-193-3/+3
|
* Merge pull request #12218 from owncloud/issue/10991-fixesMorris Jobke2014-11-173-16/+21
|\ | | | | Issue/10991 Make unit tests pass on windows
| * Do not use uniqid in Group and User tests as it is not unique on windowsJoas Schilling2014-11-063-16/+21
| |
* | Remove confusingly names \OC\User\Manager::delete and fix the automatic ↵Robin Appelman2014-11-051-1/+12
|/ | | | cache cleanup instead
* strip whitespace from the beginning and end of the display name to avoid ↵Bjoern Schiessle2014-10-151-0/+46
| | | | empty display names
* Add unit testRobin Appelman2014-10-131-33/+63
|
* add testsArthur Schiwon2014-06-232-0/+20
|
* increase scrutinizer happyiness by removing minor/informational issuesArthur Schiwon2014-05-231-2/+0
|
* clean up here is superflous, will already be removed by user sessionArthur Schiwon2014-05-231-6/+0
|
* test hooks also on loginArthur Schiwon2014-05-231-3/+39
|
* also test whether hooks workArthur Schiwon2014-05-231-5/+39
|
* unit tests for loginWithCookie()Arthur Schiwon2014-05-231-0/+114
|
* Group Database backend must not gather user details itself but ask userArthur Schiwon2014-04-281-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | backends. This is a port to master from PR #7745 remove OC_GROUP_BACKEND_GET_DISPLAYNAME option for group backends Conflicts: lib/private/group/backend.php LDAP: getDisplayNamesInGroup is not an option for group backends anymore Conflicts: apps/user_ldap/group_ldap.php apps/user_ldap/group_proxy.php clean up group backends Conflicts: lib/private/group/database.php remove now unnecessary test implement getDisplayNames in group manager adjust user manager tests test for group manager's displayNamesInGroup trim must not be used in empty in PHP < 5.5 keep the constant to not provoke PHP warnings Conflicts: lib/private/group/backend.php
* adjust tests accordinglyArthur Schiwon2014-04-151-1/+1
|
* add tests for user countingArthur Schiwon2014-01-081-0/+72
|
* Pass config object in testGetHomeNotSupportedRobin Appelman2013-12-201-1/+4
|
* adjust testArthur Schiwon2013-12-131-2/+13
|
* Enable user backends to provide avatar imagesArthur Schiwon2013-11-222-0/+96
|