aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Preview/BackgroundCleanupJobTest.php
Commit message (Collapse)AuthorAgeFilesLines
* refactor: Thumbnail Generator logging and testsrefactor/preview-testsnfebe2025-04-231-26/+17
| | | | Signed-off-by: nfebe <fenn25.fn@gmail.com>
* fix(preview): Filter for folders in cleanup old preview jobDario Mehlich2025-01-271-0/+31
| | | | | | | | | | | | | Fixes #35936. When running `OC\Preview\BackgroundCleanupJob`, the main iteration loop in `run()` expects a folder, however, `getOldPreviewLocations()` currently does not filter by mimetype and therefore can yield a non-folder entry which causes an Exception when constructing the Folder impl. Filtering for `httpd/unix-directory`, as `getNewPreviewLocations()` already does, fixes this issue. Signed-off-by: Dario Mehlich <d.mehlich@gmail.com>
* chore(deps): Update nextcloud/coding-standard to v1.3.1provokateurin2024-09-191-1/+1
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* refactor: Add void return type to PHPUnit test methodsChristoph Wurst2024-09-151-3/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* chore: Apply php:cs recommendationsLouis Chemineau2024-08-281-2/+2
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* fix: implement sharding compatible cleanup for various bitsRobin Appelman2024-08-281-0/+8
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix: cast to bigint on postgresqlRobin Appelman2024-07-231-1/+3
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* chore: Add SPDX headerAndy Scherzinger2024-05-131-18/+2
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* Refactor `OC\Server::getRootFolder`Andrew Summers2023-11-101-2/+2
| | | | Signed-off-by: Andrew Summers <18727110+summersab@users.noreply.github.com>
* Fix BackgroundCleanupJobTestCôme Chilliet2023-03-201-2/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Adapt tests to new job constructorsCôme Chilliet2022-12-051-3/+7
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Move to subfolders for preview filesRoeland Jago Douma2020-04-191-26/+70
| | | | | | | | | | | Else the number of files can grow very large very quickly in the preview folder. Esp on large systems. This generates the md5 of the fileid. And then creates folders of the first 7 charts. In that folder is then a folder with the fileid. And inside there are the previews. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* 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>
* Remove unused importsChristoph Wurst2020-03-251-1/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Mode to modern phpunitRoeland Jago Douma2019-11-271-2/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make phpunit8 compatibleRoeland Jago Douma2019-11-271-3/+3
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* use a fresh appdata factory in background job testRobin Appelman2018-12-061-1/+5
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add testsRoeland Jago Douma2018-05-141-0/+159
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>