aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/tests/Controller/ApiControllerTest.php
Commit message (Collapse)AuthorAgeFilesLines
* refactor: Add void return type to PHPUnit test methodsChristoph Wurst2024-09-151-11/+11
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* test(files): Fix ApiController testChristopher Ng2024-08-011-1/+16
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* fix: Ignore preview requests for invalid file idsJulius Härtl2024-07-221-0/+12
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* chore: Add SPDX headerAndy Scherzinger2024-05-291-24/+4
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* feat(files): add view config service to store user-config per viewJohn Molakvoæ2023-04-181-47/+6
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* feat(files): implement sorting per viewJohn Molakvoæ2023-04-061-12/+19
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Fixing testsJohn Molakvoæ2023-01-041-1/+6
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Remove at() matcher for tests for files appCôme Chilliet2022-05-241-5/+5
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix errors from files applications tests on PHP 8.1Côme Chilliet2021-11-231-1/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix setUserValue bool test on testShowHiddenFiles & testCropImagePreviewsJohn Molakvoæ (skjnldsv)2021-10-131-1/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-1/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix test on masterLukas Reschke2021-05-291-1/+1
| | | | | | Regression by https://github.com/nextcloud/server/pull/26410 Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Add "Crop image previews" setting to filesNina Pypchenko2021-01-141-0/+13
| | | | | | | | | | | | | | Added a new user setting that toggles cropping on image previews in grid view. True (default value): crops each image to a square. False: keep original aspect ratio. Signed-off-by: Nina Pypchenko <22447785+nina-py@users.noreply.github.com> Closes #18439. Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to ↵Morris Jobke2020-08-121-2/+2
| | | | | | \PHPUnit\Framework\MockObject\MockObject Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-1/+0
| | | | | | | | | | | | | | | 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 the shorter phpunit syntax for mocked return valuesChristoph Wurst2020-03-251-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-051-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Mode to modern phpunitRoeland Jago Douma2019-11-271-1/+1
| | | | 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-4/+4
| | | | | | | | | | | * 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>
* Update license headersMorris Jobke2017-11-061-0/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove unused use statementsMorris Jobke2017-04-221-2/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Added genertor helper & testsRoeland Jago Douma2016-11-031-13/+32
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make it possible to filter by tags with REPORT methodVincent Petry2016-10-191-176/+0
| | | | | | | | | | | Enhanced the REPORT method on the Webdav endpoint and added a "oc:favorite" filter rule. When set, it will return a flat list of results filtered with only favorite files. The web UI was also adjusted to use this REPORT method instead of the private API endpoint. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix getMock filesRoeland Jago Douma2016-09-061-3/+6
|
* fix testRobin Appelman2016-07-221-1/+7
|
* Fix apps/Joas Schilling2016-07-211-2/+3
|
* Update license headersLukas Reschke2016-05-261-3/+2
|
* Move Files app to PSR-4 (#24569)Joas Schilling2016-05-121-0/+399
* Move lib/ of Files app to PSR-4 * Move tests to PSR-4