summaryrefslogtreecommitdiffstats
path: root/apps/settings/tests/Controller
Commit message (Collapse)AuthorAgeFilesLines
* fix(CardDAV): only run upgrade sync if 1000 users or lessAnna Larch2023-08-271-0/+3
| | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* feat(admin): Show an error when the admin is throttledJoas Schilling2023-08-231-0/+8
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* feat: Add public event for missing indicesJulius Härtl2023-07-141-0/+8
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* address review and fix testsSimon L2023-04-181-1/+3
| | | | Signed-off-by: Simon L <szaimen@e.mail.de>
* add an admin check for db file lockingSimon L2023-04-171-0/+4
| | | | Signed-off-by: Simon L <szaimen@e.mail.de>
* Create headings for settings pagesjulia.kirschenheuter2023-03-071-2/+4
| | | | Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
* Migrate to Symfony MailerCôme Chilliet2023-02-021-4/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix typing errors in settings testsCôme Chilliet2023-01-021-6/+4
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Add unit test for case insensitive email savingVincent Petry2022-12-161-1/+9
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Fix testsCarl Schwan2022-11-221-4/+29
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix some more problems with tests under PHP 8.2Côme Chilliet2022-11-151-12/+12
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* add a setup check for 64 bitszaimen2022-07-131-0/+7
| | | | Signed-off-by: szaimen <szaimen@e.mail.de>
* Remove deprecated at() matcher from settings testsCôme Chilliet2022-06-071-91/+57
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix drone tests on masterszaimen2022-03-111-0/+2
| | | | Signed-off-by: szaimen <szaimen@e.mail.de>
* fix testsszaimen2022-03-071-0/+12
| | | | Signed-off-by: szaimen <szaimen@e.mail.de>
* Add Nextcloud docs link to OPcache recommendsMichaIng2022-03-031-3/+0
| | | | | | | | A link to the Nextcloud documentation is currently only shown when the OPcache module is not loaded at all. This commit moves the link to the generic text above the individual recommendations list. Additionally remove the obsolete phpOpcacheDocumentation entry from test data arrays, which is not passed anymore by the backend. Signed-off-by: MichaIng <micha@dietpi.com>
* Setup warning for invalid LDAP user or group UUIDs.Arthur Schiwon2022-02-101-2/+19
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* fix testsszaimen2022-02-032-1/+12
| | | | Signed-off-by: szaimen <szaimen@e.mail.de>
* Enhance and complement OPcache setup checksMichaIng2021-12-191-11/+4
| | | | | | | | | | | | | | The current OPcache recommendations match the PHP defaults, but the values are much higher than required to run Nextcloud, even with a high number of installed apps. On the other hand, when other applications use the same OPcache instance, the recommended values might not be sufficient. Accurate recommendations need to take into account actual OPcache usage. With this commit, recommendations are shown to raise the config value if more than 90% of max cache size or number of keys is used. The checks whether the module is loaded and whether the OPcache is properly configured have been merged into a single function. This allowed to reduce the overhead of OPcache configuration checks when the module is not loaded. A check has been added whether Nextcloud is permitted to use the OPcache API. Without this, inconsistencies during core or app upgrades may cause errors and OPcache usage cannot be determined for the new usage based checks. OPcache usage based checks are skipped when Nextcloud is not permitted to use the API. Signed-off-by: MichaIng <micha@dietpi.com>
* More test fixingJoas Schilling2021-12-011-9/+9
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* ArgumentCountError: Too few arguments to function ↵Joas Schilling2021-11-091-18/+29
| | | | | | OCA\Settings\Controller\CheckSetupController::__construct() Signed-off-by: Joas Schilling <coding@schilljs.com>
* PHPUnit\Framework\MockObject\DuplicateMethodException: Cannot stub or mock ↵Joas Schilling2021-11-091-1/+0
| | | | | | using a method list that contains duplicates: Signed-off-by: Joas Schilling <coding@schilljs.com>
* Make sure trusted_proxies is an arrayJoas Schilling2021-11-091-4/+27
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix appstoreenabled check in Fetcher so it's coherent with AppSettingsControllerJulien Veyssier2021-10-181-2/+2
| | | | Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
* Add admin privilege delegation for admin settingsCarl Schwan2021-09-292-2/+82
| | | | | | | This makes it possible for selected groups to access some settings pages. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Issue 16719: CheckSetupController.php: now injecting reference to ↵Stefan2021-09-171-0/+6
| | | | | | ITempManager, rather than obtaining using it manually Signed-off-by: Stefan <Stefan.Schilling@EXXETA.com>
* use specific email getter where necessaryArthur Schiwon2021-09-091-5/+4
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-047-13/+9
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix translation phpunit testJohn Molakvoæ (skjnldsv)2021-06-021-3/+3
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* do not use private AccountManager in UsersControllerArthur Schiwon2021-05-251-151/+251
| | | | | | | | - extends IAccountProperty for verificationData getters and setters - implementation thereof ^ - and of course adaption of UsersController Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Fix deleting properties of user settings when not given explicitlyDaniel Calviño Sánchez2021-04-231-0/+120
| | | | | | | | | | The controller can receive an optional subset of the properties of the user settings; values not given are set to "null" by default. However, those null values overwrote the previously existing values, so in practice any value not given was deleted from the user settings. Now only non null values overwrite the previous values. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Respect additional user settings not covered by the controllerDaniel Calviño Sánchez2021-04-231-10/+0
| | | | | | | | | | | | | | | | | | | | "AccountManager::updateUser()" wipes previous user data with whichever user data is given (except for some adjustments, like resetting the verified status when needed). As the controller overrode the properties those properties would lose some of their attributes even if they are not affected by the changes made by the controller. Now the controller only modifies the attributes set ("value" and "scope") to prevent that. Note that with this change the controller no longer removes the "verified" status, but this is not a problem because, as mentioned, "AccountManager::updateUser()" resets them when needed (for example, when the value of the website property changes). This change is a previous step to fix overwritting properties with null values, and it will prevent the controller from making unexpected changes if more attributes are added in the future. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Add more unit tests for setting user settingsDaniel Calviño Sánchez2021-04-231-0/+160
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Change default test data to values less similar to empty valuesDaniel Calviño Sánchez2021-04-231-12/+12
| | | | | | | Right now it makes no difference, but this should make future tests clearer, specially in case of failure. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Extract default test data to a helper getterDaniel Calviño Sánchez2021-04-231-42/+46
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Use constants from interface rather than classDaniel Calviño Sánchez2021-04-231-19/+19
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Make extra user profile fields always editableVincent Petry2021-03-261-0/+1
| | | | | | | | The fields for phone number, address, website and twitter are now editable regardless whether federated sharing and the lookup server are enabled or not. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Map old account scope properties to new namesVincent Petry2021-03-261-14/+14
| | | | | | | | Use new scope values in settings page. Adjust all consumers to use the new constants. Map old scope values to new ones in account property getter. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Also clear the knownUser when changing via the settings endpointJoas Schilling2021-03-101-0/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Move away some ILoggersRoeland Jago Douma2021-03-023-9/+9
| | | | | | Makes psalm happier Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Revert "use the configured forwarded headers for the setup check"Roeland Jago Douma2021-02-131-31/+39
|
* use the configured forwarded headers for the setup checkRobin Appelman2021-02-121-39/+31
| | | | | | instead of always checking against the same header Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add setup check to verify that the used DB version is still supported in the ↵Morris Jobke2021-01-081-2/+16
| | | | | | next major release Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-162-1/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add a config for default region of phone numbersJoas Schilling2020-12-071-0/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Also translate the phone number when coming in via the accounts manager API ↵Joas Schilling2020-12-071-3/+5
| | | | | | directly Signed-off-by: Joas Schilling <coding@schilljs.com>
* Make code strictJoas Schilling2020-12-071-45/+46
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Create primary keys on all tables and add a command to create the afterwardsJoas Schilling2020-11-101-0/+5
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add a background job that checks for potential user imported SSL ↵Morris Jobke2020-11-031-4/+9
| | | | | | certificates and shows a warning in the admin settings Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add SVG support check to setup checknhirokinet2020-11-021-0/+1
| | | | Signed-off-by: nhirokinet <nhirokinet@nhiroki.net>