aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/tests/StorageTest.php
Commit message (Collapse)AuthorAgeFilesLines
* chore: Apply new rector configuration to apps folderCôme Chilliet2025-02-131-11/+12
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* refactor(apps): Use constructor property promotion when possibleprovokateurin2024-10-211-4/+4
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* chore(apps): Apply new rector configuration to autouse classesCôme Chilliet2024-10-151-12/+14
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* refactor(files_trashbin): Add Storage parameter strong typesprovokateurin2024-10-071-2/+2
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix: preserve fileid when moving from objectstore to non-objectstoreRobin Appelman2024-09-271-4/+0
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix(files_trashbin): Fix all IStorage return typesprovokateurin2024-09-261-2/+2
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* test: fix trashbin StorageTestRobin Appelman2024-09-181-0/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* refactor: Add void return type to PHPUnit test methodsChristoph Wurst2024-09-151-18/+18
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-251-2/+2
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* chore: Add SPDX headerAndy Scherzinger2024-06-021-28/+3
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* Migrate applications away from deprecated ILoggerCôme Chilliet2023-09-211-1/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* only gather dependencies for trashbin wrapper onceRobin Appelman2023-08-181-1/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix(files_trashbin): Migrate to IEventDispatcher and emit as typed eventJoas Schilling2023-07-191-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix(trashbin): Truncate long filenamesChristopher Ng2023-05-311-0/+45
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Handle empty files in version creation logicLouis Chemineau2023-01-261-2/+0
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Adapt files_versions tests to modernized hooksLouis Chemineau2023-01-261-12/+4
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* skip localstorage dependend trashbin test when not using local user storageRobin Appelman2022-02-251-0/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-1/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* disable trasbin during the moveFromStorage fallbackRobin Appelman2021-02-171-0/+29
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* 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>
* Use IBootstrap for the files_trashbin appMorris Jobke2020-07-231-1/+5
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update share type constant usageJoas Schilling2020-06-241-2/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* add locking to resolve concurent move to trashbin conflictsRobin Appelman2020-05-061-8/+42
| | | | | | | uses a lock to prevent two requests from moving a file to the trashbin concurrently (causing sql duplicate key errors) Signed-off-by: Robin Appelman <robin@icewind.nl>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-2/+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 the short array syntax, everywhereChristoph Wurst2020-03-261-8/+8
| | | | 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>
* Update license headersChristoph Wurst2019-12-051-1/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Make phpunit8 compatibleRoeland Jago Douma2019-11-271-2/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Some php-cs fixesRoeland Jago Douma2019-11-221-1/+1
| | | | | | | | | | | * 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>
* Fix share testsRoeland Jago Douma2019-11-201-2/+4
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Emit moveToTrash event only for the deleting userJulius Härtl2019-08-061-1/+4
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add event dispatcher to OCPChristoph Wurst2019-06-251-3/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* fix trash storage wrapper testsRobin Appelman2018-10-171-0/+3
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix risky tests without assertionsJoas Schilling2018-01-251-0/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update license headersMorris Jobke2017-11-061-0/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use ::class in test mocksMorris Jobke2017-10-241-1/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Don't use deprecated $this->getMock() methodJoas Schilling2017-10-091-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* allow apps to control the trash binBjoern Schiessle2017-09-151-11/+41
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* delete files right away in case of a encryption exceptionBjoern Schiessle2017-03-141-1/+4
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Update with robinJoas Schilling2016-07-211-1/+1
|
* Fix apps/Joas Schilling2016-07-211-3/+4
|
* Update license headersLukas Reschke2016-05-261-1/+3
|
* Move files_trashbin to PSR-4 (#24570)Joas Schilling2016-05-121-0/+560