aboutsummaryrefslogtreecommitdiffstats
path: root/tests/Core/Command
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #48537 from nextcloud/add-command-to-cleanup-previewKate2024-10-141-0/+176
|\
| * feat(preview): add command to cleanup preview folderadd-command-to-cleanup-previewThomas Citharel2024-10-031-0/+176
| | | | | | | | | | | | | | | | | | | | | | | | | | When changing preview parameters (size, format, …), one can simply delete the preview folder and run files:scan-app-data in order to retrigger updated preview recreation because files are absent. However, that's not possible when using ObjectStorage as primary storage, as there's no concept of "preview folder". This command allows to simply delete and recreate the preview folder properly from Nextcloud, so that the abstraction levels handle all the subfolder & file deleting part. Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* | test(settings): Correctly only return bool for Symfony ↵dependabot/composer/symfony-6.4Joas Schilling2024-10-071-7/+17
| | | | | | | | | | | | Input::hasParameterOption calls Signed-off-by: Joas Schilling <coding@schilljs.com>
* | test: Fix mock creationJoas Schilling2024-10-071-4/+3
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* chore(deps): Update nextcloud/coding-standard to v1.3.1provokateurin2024-09-194-6/+6
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* refactor: Add void return type to PHPUnit test methodsChristoph Wurst2024-09-1542-119/+119
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-2513-39/+39
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* fix: Fix failing test for group listingJulius Härtl2024-08-061-0/+6
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* chore(tests): Adapt tests to the group:list changeCôme Chilliet2024-08-061-28/+32
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore: Add SPDX headerAndy Scherzinger2024-05-1345-773/+115
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* Revert change in TwoFactorAuth CleanupTest.phpLouis Chemineau2024-03-061-6/+1
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* fix(files_versions): Improve files version listingLouis Chemineau2024-03-061-1/+6
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* add generate-password option and flow fixesAnupam Kumar2024-02-241-40/+82
| | | | Signed-off-by: Anupam Kumar <kyteinsky@gmail.com>
* new user password email option, improved on #29368Anupam Kumar2024-02-241-27/+29
| | | | Signed-off-by: Anupam Kumar <kyteinsky@gmail.com>
* Enable adding E-Mail addresses to new user accounts using the CLIPhilip Gatzka2024-02-241-0/+126
| | | | Signed-off-by: Philip Gatzka <philip.gatzka@mailbox.org>
* lazy AppConfigMaxence Lange2024-01-152-23/+44
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-232-2/+2
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* Remove last calls to deprecated at matcher in tests/CoreCôme Chilliet2023-09-189-106/+92
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Add tests for occ user:auth-tokens:deleteLucas Azevedo2023-08-251-0/+170
| | | | Signed-off-by: Lucas Azevedo <lhs_azevedo@hotmail.com>
* Fixes testcase error.Faraz Samapoor2023-06-241-1/+6
| | | | Signed-off-by: Faraz Samapoor <fsa@adlas.at>
* fix: Adjust console formatter code to match with Symfony type hintsFerdinand Thiessen2023-04-172-0/+2
| | | | | | | Symfony has added type hints on the `OutputFormatterInterface`, so we must adjust our type hints to match with Symfony. Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
* Fix a bunch of deprecation in the phpunit for coreCarl Schwan2023-01-242-2/+2
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix broken user:setting command unit testJoas Schilling2023-01-231-1/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* composer run cs:fixCôme Chilliet2023-01-2020-22/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Update core to PHP 7.4 standardCarl Schwan2022-05-201-3/+3
| | | | | | | - Typed properties - Port to LoggerInterface Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* PhpunitJohn Molakvoæ2022-04-211-3/+3
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Fix tests and avoid PHP errors in themCôme Chilliet2021-11-233-3/+14
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Make AppsEnableTest and AppsDisableTest independet of the app version numberDaniel Kesselberg2021-10-012-22/+22
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Fix unit testsJoas Schilling2021-09-292-16/+16
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix app version checkJoas Schilling2021-06-252-27/+17
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add commands to manage tags via OCCJohannes Leuker2021-05-254-0/+552
| | | | | | list, add, delete, edit Signed-off-by: Johannes Leuker <j.leuker@hosting.de>
* Change my email addressJohannes Leuker2021-03-241-2/+2
| | | | Signed-off-by: Johannes Leuker <j.leuker@hosting.de>
* Fix more tests in the Core subdirVincent Petry2021-03-241-1/+8
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Fix core tests command for app enabling/disablingVincent Petry2021-03-232-17/+17
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Show group backends in occ group:list --info and group:infoJohannes Leuker2021-03-012-7/+207
| | | | Signed-off-by: Johannes Leuker <j.leuker@hosting.de>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-052-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to ↵Morris Jobke2020-08-1229-114/+114
| | | | | | \PHPUnit\Framework\MockObject\MockObject Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Allow to update to nightlyJohn Molakvoæ (skjnldsv)2020-08-072-18/+18
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Add tests for occ preview:migrate - initial check for empty directoriesMorris Jobke2020-08-071-0/+141
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use assertStringContainsString instead of assertContains on stringsMorris Jobke2020-07-235-16/+16
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Updated test to check for already enabled appsSander Ruitenbeek2020-04-241-0/+1
| | | | Signed-off-by: Sander Ruitenbeek <s.ruitenbeek@getgoing.nl>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-1015-33/+3
| | | | | | | | | | | | | | | 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-103-3/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-0910-13/+13
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use a blank line after the opening tagChristoph Wurst2020-04-092-0/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-0921-21/+0
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #20170 from nextcloud/techdebt/remove-unused-importsChristoph Wurst2020-03-271-3/+0
|\ | | | | Remove unused imports
| * Remove unused importsChristoph Wurst2020-03-251-3/+0
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use the shorter phpunit syntax for mocked return valuesChristoph Wurst2020-03-254-26/+26
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix CIKim Brose2020-01-031-1/+1
| | | Signed-off-by: Kim Brose <kim.brose@rwth-aachen.de>