aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings/tests/Controller/CheckSetupControllerTest.php
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix tests for setup checksCôme Chilliet2023-10-191-130/+14
| | | | | | | Had to remove tests for migrated checks, we should add tests for each SetupCheck class later on. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Correct typos and add quotation marksValdnet2023-10-111-1/+1
| | | | | | Corrects typos and unifies spelling for "occ" commands. Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
* fix(CardDAV): only run upgrade sync if 1000 users or lessAnna Larch2023-08-261-0/+3
| | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* feat(admin): Show an error when the admin is throttledJoas Schilling2023-08-211-0/+8
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix(db)!: Remove private legacy event because we can not keep itJoas Schilling2023-07-241-10/+1
| | | | 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>
* feat: remove check for OpenSSL 1.0.1d and 1.0.2bDaniel Kesselberg2023-06-041-37/+0
| | | | | | | OpenSSL 1.0.1d: 2013-02-05 OpenSSL 1.0.2b: 2015-06-11 Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* 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>
* 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-031-0/+6
| | | | 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>
* 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>
* 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>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-1/+1
| | | | 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>
* Move away some ILoggersRoeland Jago Douma2021-03-021-3/+3
| | | | | | 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-161-1/+1
| | | | 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>
* 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>
* Merge pull request #23161 from nextcloud/enh/noid/setup-checks2Roeland Jago Douma2020-10-081-40/+0
|\ | | | | Remove setup check for php mail
| * Remove setup check for php mailDaniel Kesselberg2020-10-031-40/+0
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | Format code to a single space around binary operatorsChristoph Wurst2020-10-051-1/+1
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-241-1/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix unit testsMorris Jobke2020-08-201-2/+11
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add setup check that links to the migration documentationMorris Jobke2020-08-191-0/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to ↵Morris Jobke2020-08-121-12/+12
| | | | | | \PHPUnit\Framework\MockObject\MockObject Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add setup checks for php default charset and output buffering.Daniel Kesselberg2020-07-261-0/+2
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-1/+1
| | | | | | | | | | | | | | | 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>
* Remove trailing and in between spacesChristoph Wurst2020-04-091-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-091-5/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix (array) indent style to always use one tabChristoph Wurst2020-04-091-5/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add optional column oc_comments.reference_idJoas Schilling2020-03-311-0/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Use the short array syntax, everywhereChristoph Wurst2020-03-261-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the shorter phpunit syntax for mocked return valuesChristoph Wurst2020-03-251-60/+60
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add basic reverseproxy misconfig detection to setupchecksRoeland Jago Douma2020-03-231-28/+35
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update license headersChristoph Wurst2019-12-051-3/+17
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>