aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings/tests
Commit message (Collapse)AuthorAgeFilesLines
* fix(systemtags): prevent tag edition if restrictedskjnldsv2025-03-061-0/+4
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* feat(setupcheck): check logging level for validityfeat/setup-check-loggingFerdinand Thiessen2025-02-221-0/+76
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* Merge pull request #50779 from nextcloud/chore/mailer-testsFerdinand Thiessen2025-02-181-9/+22
|\ | | | | test(Mailer): Align tests for mailer with stable30
| * test(Mailer): Align tests for mailer with stable30chore/mailer-testsJosh2025-02-121-9/+22
| | | | | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | fix(settings): Inject subadmin manager and adapt tests, resolve a FIXME commentCôme Chilliet2025-02-131-24/+49
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | chore: Apply new rector configuration to apps folderCôme Chilliet2025-02-131-1/+1
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | chore: re-apply current rector configuration to apps folderCôme Chilliet2025-02-132-3/+4
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(AccountManager): Sanitize social media handlesFerdinand Thiessen2025-02-062-1/+10
| | | | | | Ensure to only accept valid X and fediverse handles. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* feat(systemtags): add setting to block non admin to create system tagsBenjamin Gaussorgues2025-01-221-2/+1
| | | | Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* refactor(settings): Use parameters explicitly when setting mail settingsrefactor/settings/mail-settings-parametersprovokateurin2025-01-061-4/+4
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix(apps-store): Remove apps from force-enabled state when uninstalledfix/app-store-remove-force-enableFerdinand Thiessen2024-11-181-4/+3
| | | | | | | | | If an app is force-enabled and then uninstalled the force-enabled state was kept. This is now removed, so when the app should be re-installed the compatibility should be reevaluated. Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de> Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(settings): Do not use `null` on `string` parameter for sharing disclaimerFerdinand Thiessen2024-10-231-88/+94
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore(deps): Bump nextcloud/coding-standard in /vendor-bin/cs-fixerdependabot/composer/vendor-bin/cs-fixer/nextcloud/coding-standard-1.3.2dependabot[bot]2024-10-191-1/+1
| | | | | | | | | | | | | | | | | Bumps [nextcloud/coding-standard](https://github.com/nextcloud/coding-standard) from 1.3.1 to 1.3.2. - [Release notes](https://github.com/nextcloud/coding-standard/releases) - [Changelog](https://github.com/nextcloud/coding-standard/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/coding-standard/compare/v1.3.1...v1.3.2) --- updated-dependencies: - dependency-name: nextcloud/coding-standard dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: provokateurin <kate@provokateurin.de>
* chore(apps): Apply new rector configuration to autouse classesCôme Chilliet2024-10-155-10/+14
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(settings): Sort all settings - incl declarative settings - by priorityfix/declarative-settings-priorityFerdinand Thiessen2024-09-281-25/+25
| | | | | | | | Previously declarative settings were sorted by priority but behind the "native" settings, this is now fixed, meaning a declarative setting with higher priority than an `ISetting` will be correctly rendered before that `ISetting` in the settings list. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(activity): Update more activity providers to use new exceptionsfollowup/48086/fix-more-activity-providersJoas Schilling2024-09-231-3/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* chore(deps): Update nextcloud/coding-standard to v1.3.1provokateurin2024-09-192-3/+3
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix(settings): pronouns UsersControllerTestJohn Molakvoæ (skjnldsv)2024-09-185-9/+60
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Merge pull request #46480 from nextcloud/fix/mailer-binaryfinder-fallbackRobin Appelman2024-09-161-1/+2
|\ | | | | fix(Mailer): Fix sendmail binary fallback
| * fix(Mailer): Fix sendmail binary fallbackfix/mailer-binaryfinder-fallbackJosh2024-09-161-1/+2
| | | | | | | | | | | | feat: add debug logging to sendmail binary finder Signed-off-by: Josh <josh.t.richards@gmail.com>
* | feat: Make `CheckServerResponseTrait` public and provide as ↵feat/make-setup-check-trait-publicFerdinand Thiessen2024-09-162-253/+0
|/ | | | | | | | | `OCP\SetupCheck\CheckServerResponseTrait` This trait is used by other apps for creating setup checks, so we should provide it instead apps using private API. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* refactor: Add void return type to PHPUnit test methodsChristoph Wurst2024-09-1519-71/+71
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* refactor(settings): `CheckServerResponseTrait` always expect absolute pathFerdinand Thiessen2024-09-132-33/+32
| | | | | | Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de> Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(setup-checks): Ensure URL with webroot worksFerdinand Thiessen2024-09-132-0/+254
| | | | | | | | | | | We basically mock the way `URLGenerator::getAbsoluteURL` works, so we must make sure that the URL might already contain the webroot. Because `baseURL` and `cliURL` also contain the webroot we need to remove the webroot from the URL first. Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de> Co-authored-by: Daniel <mail@danielkesselberg.de> Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(settings): Fix sharing exclude groups from password requirement option ↵provokateurin2024-09-031-4/+4
| | | | | | not working Signed-off-by: provokateurin <kate@provokateurin.de>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-255-16/+16
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* fix(SetupCheck): Properly check public access to data directoryFerdinand Thiessen2024-08-081-9/+11
| | | | | | | | | | | | | When checking for public (web) access to the data directory the status is not enough as you might have a webserver that forwards to e.g. a login page. So instead check that the content of the file matches. For this the `.ncdata` file (renamed from `.ocdata`¹) has minimal text content to allow checking. ¹The file was renamed from the legacy `.ocdata`, there is a repair step to remove the old one. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix: emails tests after new design fixesskjnldsv2024-08-061-24/+24
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* test(users): Adapt tests to new admin delegation checksLouis Chemineau2024-07-221-0/+2
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* fix(db): Promote the use of `getDatabaseProvider` to reduce the impage of ↵Joas Schilling2024-07-191-3/+1
| | | | | | removed upstream platforms Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix(mail): Fix big logos in mail templates for OutlookJoas Schilling2024-07-171-0/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix(IntegrityCheck): Ensure the check is run if no results are availableFerdinand Thiessen2024-07-031-0/+135
| | | | | | | | | If there are no cached results the current implementation was also returning an empty array, but this was the same as when there was a successful run. So to distinguish this we return `null` if there are *no* results. In this case we need to rerun the integrity checker. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* Merge pull request #46009 from nextcloud/refactor/ajax-cronFerdinand Thiessen2024-06-291-10/+14
|\ | | | | refactor(cron): Use `IAppConfig` for cron settings and migrate ajax cron away from jQuery
| * refactor: Use `IAppConfig` for setting cron typeFerdinand Thiessen2024-06-281-10/+14
| | | | | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | fix(settings): Adjust SetupCheck for supported database versionsFerdinand Thiessen2024-06-271-1/+1
|/ | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* test(settings): fix AccountMigratorTest when using PNG avatarsFerdinand Thiessen2024-06-141-0/+0
| | | | | | | PNG is lossless so we test the imported file for equality with the exported file, but the changed asset was never imported into Nextcloud so it was never initially scaled. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore: Add SPDX headerAndy Scherzinger2024-06-132-0/+0
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* Merge pull request #43942 from nextcloud/fix/43612/avoid-pwd-confirm-ssoArthur Schiwon2024-06-072-12/+13
|\ | | | | fix(Session): avoid password confirmation on SSO
| * refactor(Token): introduce scope constantsArthur Schiwon2024-06-052-12/+13
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | chore: Add SPDX headerAndy Scherzinger2024-06-0330-667/+67
|/ | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* feat(ldap): sync additional properties to profile and SABJake Nabasny2024-05-303-3/+8
| | | | | | | | | | | | | | | Synced from LDAP to profile: - Date of birth Synced from LDAP to SAB (via the profile): - Biography - Date of birth Original code by Jake Nabasny (GitHub: @slapcat) Co-authored-by: Jake Nabasny <jake@nabasny.com> Co-authored-by: Richard Steinmetz <richard@steinmetz.cloud> Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* feat(files_sharing): allow to specify allowed groups to share instead of ↵Corentin Damman2024-03-151-2/+2
| | | | | | | | excluded groups Relates to #3387 Signed-off-by: Corentin Damman <c.damman@intopix.com>
* feat(settings): Cache app discover images to ensure privacy of usersFerdinand Thiessen2024-03-141-0/+15
| | | | | | | Co-authored-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com> Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de> Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix: Improve HSTS warning wording as suggested by reviewerCôme Chilliet2024-03-141-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* feat: Migrate HSTS check to Security headers SetupCheckCôme Chilliet2024-03-131-0/+6
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Migrate security headers check tests and fix the SetupCheck implementationCôme Chilliet2024-03-131-0/+218
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Fix ocm-provider setup check failure detectionCôme Chilliet2024-03-131-7/+7
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(updatenotification): spread the use of new appconfigMaxence Lange2024-03-131-0/+5
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* feat: Add declarative settingsjld31032024-03-121-1/+16
| | | | | | Signed-off-by: jld3103 <jld3103yt@gmail.com> Signed-off-by: Julien Veyssier <julien-nc@posteo.net> Signed-off-by: Andrey Borysenko <andrey18106x@gmail.com>
* feat(settings): Migrate .well-known URL setup check to new APICôme Chilliet2024-03-071-0/+233
| | | | | | Co-authored-by: Côme Chilliet <come.chilliet@nextcloud.com> Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de> Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>