summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/tests/User_LDAPTest.php
Commit message (Collapse)AuthorAgeFilesLines
* Fix unit testsCôme Chilliet2022-03-031-7/+9
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Migrate HintException to OCPGary Kim2021-06-301-3/+3
| | | | Signed-off-by: Gary Kim <gary@garykim.dev>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-1/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* user share manager to determine share ownershipArthur Schiwon2020-10-261-1/+1
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-051-4/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to ↵Morris Jobke2020-08-121-8/+8
| | | | | | \PHPUnit\Framework\MockObject\MockObject Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* fix strings being passed where arrays where expectedArthur Schiwon2020-06-241-0/+18
| | | | | | also brought type hints up to internal API level Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-76/+84
| | | | | | | | | | | | | | | 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>
* Use elseif instead of else ifChristoph Wurst2020-04-101-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-091-37/+37
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-311-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the short array syntax, everywhereChristoph Wurst2020-03-261-18/+18
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the shorter phpunit syntax for mocked return valuesChristoph Wurst2020-03-251-70/+70
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* remove superfluous testsArthur Schiwon2020-01-081-58/+0
| | | | | | | | - user_ldap is not exposed to public api, it is always behind ldap_proxy - this is too much for a unit test - integration tests cover userExists implicitly Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* adjust testsArthur Schiwon2020-01-081-35/+10
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* relax strict getHome behaviour for LDAP users in a shadow stateArthur Schiwon2020-01-081-16/+5
| | | | | | | | * simplifies deletion process * less strange behaviour when looking up home storage (as long as it is local) * thus could enable transfer ownerships after user went invisible on ldap Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Update license headersChristoph Wurst2019-12-051-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Mode to modern phpunitRoeland Jago Douma2019-11-271-17/+17
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make phpunit8 compatibleRoeland Jago Douma2019-11-271-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Some php-cs fixesRoeland Jago Douma2019-11-221-3/+3
| | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* invalidates user when plugin reported deletion successArthur Schiwon2019-06-261-2/+20
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* ensures mapping of chosen useridArthur Schiwon2019-06-191-2/+17
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* caches the displayname after an LDAP plugin set itArthur Schiwon2019-06-181-3/+27
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* fix user creation using LDAP PluginVinicius Cubas Brand2019-03-211-1/+1
| | | | Signed-off-by: Vinicius Cubas Brand <viniciuscb@gmail.com>
* fix unit testsArthur Schiwon2018-08-151-10/+47
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* adjust and add more unit testsArthur Schiwon2018-07-051-0/+27
| | | | 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/+28
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Iron User_LDAP testsArthur Schiwon2018-07-031-531/+259
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Remove deprecated \OCP\User::userExistsRoeland Jago Douma2018-03-261-5/+4
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Remove deprecated OCP\User::getDisplaynameRoeland Jago Douma2018-03-251-2/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Remove deprecated \OCP\User::getUsersRoeland Jago Douma2018-03-251-5/+14
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Cleanup OC_User and OCP\UserMorris Jobke2018-01-161-6/+18
| | | | | | * mainly removes deprecated methods and old static code Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* removes invalid tests, adapts another oneArthur Schiwon2018-01-031-4/+3
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* fix unit tests after rebaseArthur Schiwon2017-11-091-2/+11
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* adjust testsArthur Schiwon2017-11-091-54/+212
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Update license headersMorris Jobke2017-11-061-2/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Plugins infrastructure in User_LDAPVinicius Cubas Brand2017-11-031-43/+356
| | | | Signed-off-by: Vinicius Cubas Brand <viniciuscb@gmail.com>
* fix LDAP User deletion (cleanup)Arthur Schiwon2017-09-291-45/+57
| | | | | | | | | discovered a bug in the integration test which lead to following a different code path and giving a false-positive success feedback. Also listens now to the evendispatcher instead of old hook system Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* listen to deletion hooks for proper handling, adjust and add testsArthur Schiwon2017-08-311-24/+34
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Fix ldap testsRoeland Jago Douma2017-08-091-0/+9
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #1023 from GitHubUser4234/ldap_password_renew_prblizzz2017-04-241-44/+52
|\ | | | | Handle password expiry in user_ldap
| * restore ldap_password_renew_prRoger Szabo2017-03-311-44/+52
| | | | | | | | Signed-off-by: Roger Szabo <roger.szabo@web.de>
* | Change LDAP method namesMorris Jobke2017-04-121-1/+1
|/ | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove legacy class OC_Group and OC_UserMorris Jobke2017-03-091-1/+1
| | | | | | * basically a straight replacement of the wrapped code at the calling code parts Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add testsLukas Reschke2016-11-231-0/+43
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* restore ldap_password_prroot2016-11-231-1/+100
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Roger Szabo <roger.szabo@web.de> remove notification part Signed-off-by: Roger Szabo <roger.szabo@web.de> blizzz comments Signed-off-by: Roger Szabo <roger.szabo@web.de> morris comment Signed-off-by: Roger Szabo <roger.szabo@web.de> improved error message for changing password Signed-off-by: Roger Szabo <roger.szabo@web.de> blizz comments 20161013 Signed-off-by: Roger Szabo <roger.szabo@web.de> Signed-off-by: Roger Szabo <roger.szabo@web.de> Adjust HintException usage Signed-off-by: Roger Szabo <roger.szabo@web.de> Signed-off-by: Roger Szabo <roger.szabo@web.de>
* DI IConfig into ldap helperRoeland Jago Douma2016-10-101-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* cache loginName2UserName and cover the method with unit testsArthur Schiwon2016-10-071-8/+118
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* get rid of test warningsArthur Schiwon2016-10-061-21/+22
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Fix the User_LDAP appJoas Schilling2016-09-121-2/+0
|