aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Files/Type
Commit message (Collapse)AuthorAgeFilesLines
* fix: make sure we process mime extensions as stringskjnldsv2025-02-051-0/+35
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* refactor: Add void return type to PHPUnit test methodsChristoph Wurst2024-09-152-5/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* chore: Add SPDX headerAndy Scherzinger2024-05-132-34/+6
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* refactor(mimeloader): modernize MimeTypeLoaderThomas Citharel2024-03-141-6/+5
| | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* Fix gzip mimetype mappingCôme Chilliet2023-01-201-2/+2
| | | | | | PHP now detects it as application/gzip and not application/x-gzip anymore Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Remove workarounds specific to 7.4Côme Chilliet2023-01-201-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Migrate from ILogger to LoggerInterface where needed in the testsCôme Chilliet2022-03-241-4/+4
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Don't leave cursors open when tests failJoas Schilling2020-11-091-1/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* 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>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-091-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix (array) indent style to always use one tabChristoph Wurst2020-04-091-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the shorter phpunit syntax for mocked return valuesChristoph Wurst2020-03-251-4/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* REVERT ME: comment out failing gz detection testRoeland Jago Douma2019-12-121-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update the unit test to dataProvidersJoas Schilling2019-12-101-42/+77
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Move custom definition logic into methodDaniel Kesselberg2019-12-091-3/+2
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Ensure that we don't merge broken json.Daniel Kesselberg2019-12-091-8/+14
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* 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-272-3/+3
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Some php-cs fixesRoeland Jago Douma2019-11-221-2/+2
| | | | | | | | | | | * 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>
* Improve mimetype detection for object storagesMorris Jobke2017-10-261-0/+2
| | | | | | Object storage instances always fall back to the content based mimetype detection, because the file name for object storage was always random due to the fact that it was temporarily storage in a generated temp file. This patch adds a check before that to make sure to use the original file name for this purpose and also remove possible other extensions like the versioning or part file extension. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use ::class in test mocksMorris Jobke2017-10-241-9/+10
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Mimetype detection for hidden filesMagnus Walbeck2017-01-231-0/+4
| | | | Signed-off-by: Magnus Walbeck <mw@mwalbeck.org>
* Fix mimetype detection inside hidden folders (#26138)Vincent Petry2016-09-261-0/+2
| | | | | | Downstreaming of https://github.com/owncloud/core/pull/26138 Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Correctly remove the charset from finfo mimetypeJoas Schilling2016-09-051-1/+1
|
* Remove unneeded checks if it runs on a Windows machineMorris Jobke2016-07-081-4/+0
| | | | * the setup check is still there
* Move tests/ to PSR-4 (#24731)Joas Schilling2016-05-202-0/+380
* Move a-b to PSR-4 * Move c-d to PSR-4 * Move e+g to PSR-4 * Move h-l to PSR-4 * Move m-r to PSR-4 * Move s-u to PSR-4 * Move files/ to PSR-4 * Move remaining tests to PSR-4 * Remove Test\ from old autoloader