summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/tests/User
Commit message (Collapse)AuthorAgeFilesLines
* Update license headers for Nextcloud 20 (again)Christoph Wurst2020-09-071-1/+0
| | | | | | | There are still lots of outdated headers, so time for another round of updates. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* these code bits were part of old logic that was already refactored outArthur Schiwon2020-09-041-79/+0
| | | | | | - only references were in unit tests Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-241-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to ↵Morris Jobke2020-08-123-21/+21
| | | | | | \PHPUnit\Framework\MockObject\MockObject Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headers for 19Christoph Wurst2020-04-291-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* PHP-CS-Fixer greenRoeland Jago Douma2020-04-161-3/+3
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* use serverControls directly with LDAP calls, fixes 19127Arthur Schiwon2020-04-141-4/+4
| | | | | | | | - adapters for PHP API version to Support PHP < 7.3 - switch to pass only one base per search - cookie logic is moved from Access to API adapters Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-103-42/+30
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-091-9/+9
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-312-0/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the short array syntax, everywhereChristoph Wurst2020-03-261-4/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the shorter phpunit syntax for mocked return valuesChristoph Wurst2020-03-252-93/+93
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-053-4/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* TO REVERT LATER: disable some tests in UserTestRoeland Jago Douma2019-11-271-5/+5
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Mode to modern phpunitRoeland Jago Douma2019-11-273-7/+7
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make phpunit8 compatibleRoeland Jago Douma2019-11-273-5/+5
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Don't process known avatars from LDAPArthur Schiwon2019-09-041-0/+93
| | | | | | | | | * avoids useless FS operation * avoids useless DB writes * avoids useless addressbook updates * addendum to #17001 Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* add LDAP ConfigHandler for external storages and "$home" varArthur Schiwon2019-02-141-3/+49
| | | | | | | | * handler registered upon OCA\\Files_External::loadAdditionalBackends event as user_ldap is loaded before files_external * new configuration field "ldapExtStorageHomeAttribute" (not in GUI yet) Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* ensure attribute names are lower casedArthur Schiwon2019-02-141-2/+6
| | | | | | | otherwise they will be skipped when the results is being formatted and the lower-cased result keys do not match. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* ensure db is pristine before starting the testsArthur Schiwon2019-01-041-0/+3
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* add tests for the DUIArthur Schiwon2018-12-211-0/+118
| | | | | | as they are interact with the DB they are more integraiton than unit tests Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* remove app specific IUserTools and consolidate testArthur Schiwon2018-10-301-124/+100
| | | | | | | Just some house keeping. IUserTools with used in even older days for easier creation of Access instances… Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Merge pull request #12054 from nextcloud/fix/5212/interact-with-userobjectRoeland Jago Douma2018-10-301-4/+39
|\ | | | | LDAP: announce display name changes so that addressbook picks it up
| * do not run into UniqueConstraintViolationExceptionArthur Schiwon2018-10-301-8/+18
| | | | | | | | | | | | | | … when an unmapped user logs in for the first time when background job mode is ajax and no memcache was configured. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * only write when the displayname differs, but then announce itArthur Schiwon2018-10-251-0/+25
| | | | | | | | | | | | refs #5212 and fixes #9112 Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | remove unneeded empty search attribute values, fixes #12086Arthur Schiwon2018-10-291-1/+6
|/ | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* adjust and add more unit testsArthur Schiwon2018-07-051-17/+67
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* allow admin to disable fetching of avatars as well as a specific attributeArthur Schiwon2018-07-051-19/+15
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* let user set avatar in nextcloud von LDAP provides invalid image dataArthur Schiwon2018-07-031-0/+105
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Iron User_LDAP testsArthur Schiwon2018-07-031-498/+266
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* lower log level for quota manipulation casesArthur Schiwon2018-06-281-132/+100
| | | | | | and simplify the forest of ifs a little bit Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* adjust unit tests for \"Invalid argument supplied for foreach()\" fixRoger Szabo2018-05-091-4/+4
| | | | Signed-off-by: Roger Szabo <roger.szabo@web.de>
* Fixed indentationsidey792017-11-101-1/+1
| | | | | | Fixed indentation of this pr Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Fixed typo from last commitsidey792017-11-101-1/+1
| | | | | | Fixed typo in getAppValue mocket method from last commit Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Update testUpdateNoRefreshsidey792017-11-101-1/+8
| | | | | | Mocked getAppValue to deliver a value of 1800 when updateAttributesInterval is requested by needsRefresh. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* adjust testsArthur Schiwon2017-11-091-312/+169
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Update license headersMorris Jobke2017-11-062-0/+6
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use ::class in test mocksMorris Jobke2017-10-241-3/+4
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Adjust unittestJuan Pablo Villafáñez2017-09-281-15/+10
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* listen to deletion hooks for proper handling, adjust and add testsArthur Schiwon2017-08-311-1/+1
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Fix ldap testsRoeland Jago Douma2017-08-091-0/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* unit test adjustmentRoger Szabo2017-04-071-21/+31
| | | | Signed-off-by: Roger Szabo <roger.szabo@web.de>
* lower case for attributesRoger Szabo2017-04-061-7/+7
| | | | Signed-off-by: Roger Szabo <roger.szabo@web.de>
* usertest adjustmentRoger Szabo2017-03-311-1/+1
| | | | Signed-off-by: Roger Szabo <roger.szabo@web.de>
* usertest adjustmentRoger Szabo2017-03-311-11/+11
| | | | Signed-off-by: Roger Szabo <roger.szabo@web.de>
* restore ldap_password_renew_prRoger Szabo2017-03-312-69/+211
| | | | Signed-off-by: Roger Szabo <roger.szabo@web.de>
* Include tests for "default" and "none" quotasJuan Pablo Villafáñez2017-03-291-0/+80
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Add new testes to cover more casesJuan Pablo Villafáñez2017-03-291-0/+210
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Adjust current tests to match the expectationsJuan Pablo Villafáñez2017-03-291-28/+26
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Update tests for phunit 5.5Victor Dubiniuk2016-10-131-6/+12
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>