summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/tests
Commit message (Collapse)AuthorAgeFilesLines
* fix(trashbin): Truncate long filenamesChristopher Ng2023-06-011-0/+45
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* feat(files): implement sorting per viewJohn Molakvoæ2023-04-061-1/+1
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* feat(files_trashbin): migrate to vueJohn Molakvoæ2023-04-062-467/+0
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* add a bit more verbose option for trashbin cleanupRobin Appelman2023-04-031-20/+32
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix a few tests that were using too big int values for 32bitsCôme Chilliet2023-02-071-2/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.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>
* Fix jsunit testsJulius Härtl2022-09-011-2/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fix many tests and warningsCarl Schwan2022-08-081-6/+9
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Port existing server code to new interfaceCarl Schwan2022-08-081-4/+9
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Remove legacy #dir element in files listVincent Petry2022-07-271-8/+0
| | | | | | | | | | Removed legacy "#dir" input element in the DOM. Apps should use OCA.Files.App.currentFileList or OCA.Sharing.PublicApp.fileList and call getCurrentDirectory() to retrieve the current directory and changeDirectory() to change it. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Replace files app ids to classesVincent Petry2022-07-261-6/+6
| | | | | | | | | | | Replaced ids to classes for the following: - #filestable -> .files-filestable - #fileList -> .files-fileList - #controls -> .files-controls - #emptycontent -> .emptyfilelist.emptycontent Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* skip localstorage dependend trashbin test when not using local user storageRobin Appelman2022-02-251-0/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Replace license information to SPDX expressionLouis Chemineau2022-01-112-2/+2
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Fix tests on PHP 8.1 for encryption, files_sharing, files_version,Côme Chilliet2021-12-161-0/+2
| | | | | | files_trashbin and theming apps Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Update filelist testOrzu Ionut2021-11-101-1/+1
| | | | Signed-off-by: Orzu Ionut <orzu.ionut@gmail.com>
* Add configuration flag to disable the background job for files_trashbinDaniel Kesselberg2021-10-111-10/+49
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-048-12/+4
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix broken Expiration testJoas Schilling2021-04-201-9/+11
| | | | | | | | 15) Warning The data provider specified for OCA\Files_Trashbin\Tests\ExpirationTest::testGetMaxAgeAsTimestamp is invalid. PHPUnit\Util\Exception: Method timestampTestData does not exist Signed-off-by: Joas Schilling <coding@schilljs.com>
* Bump js licensesJohn Molakvoæ (skjnldsv)2021-03-312-29/+37
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Merge pull request #25568 from nextcloud/move-storage-disable-cacheRobin Appelman2021-03-021-0/+29
|\ | | | | disable trasbin during the moveFromStorage fallback
| * disable trasbin during the moveFromStorage fallbackRobin Appelman2021-02-171-0/+29
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Bump nextcloud/coding-standard from 0.3.0 to 0.5.0dependabot-preview[bot]2021-02-181-2/+2
|/ | | | | | | | | | Bumps [nextcloud/coding-standard](https://github.com/nextcloud/coding-standard) from 0.3.0 to 0.5.0. - [Release notes](https://github.com/nextcloud/coding-standard/releases) - [Changelog](https://github.com/nextcloud/coding-standard/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/coding-standard/compare/v0.3.0...v0.5.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Re-use fetched dependencies in lib/base.phpMorris Jobke2021-01-201-1/+1
| | | | | | | | Reduces calls to DI container by reusing already fetched dependencies. For status.php it went from 355 to 344. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Bump doctrine/dbal from 2.12.0 to 3.0.0Christoph Wurst2021-01-081-1/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-163-2/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* FIXRoeland Jago Douma2020-12-071-36/+1
| | | | | | | the assertAttributeEquals got removed. So we can't run these tests anymore. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Bump jquery from 2.2.4 to 3.1.0Christoph Wurst2020-11-131-8/+8
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Don't leave cursors open when tests failJoas Schilling2020-11-091-3/+7
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Sort deleted files by most recently deleted firstJan C. Borchardt2020-10-131-1/+1
| | | | | | Signed-off-by: Jan C. Borchardt <hey@jancborchardt.net> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com> Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-052-10/+10
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headers for Nextcloud 20 (again)Christoph Wurst2020-09-071-0/+1
| | | | | | | There are still lots of outdated headers, so time for another round of updates. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Tests only: Forward calls to getUserValue and getAppValueDaniel Kesselberg2020-09-011-4/+14
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-242-0/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to ↵Morris Jobke2020-08-123-10/+10
| | | | | | \PHPUnit\Framework\MockObject\MockObject Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use IBootstrap for the files_trashbin appMorris Jobke2020-07-232-3/+11
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update share type constant usageJoas Schilling2020-06-242-3/+5
| | | | 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>
* Update license headers for 19Christoph Wurst2020-04-292-0/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add visibility to all constantsChristoph Wurst2020-04-102-4/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-103-8/+4
| | | | | | | | | | | | | | | 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-8/+8
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-092-2/+1
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-312-0/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #20170 from nextcloud/techdebt/remove-unused-importsChristoph Wurst2020-03-271-1/+0
|\ | | | | Remove unused imports
| * Remove unused importsChristoph Wurst2020-03-251-1/+0
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use the short array syntax, everywhereChristoph Wurst2020-03-263-16/+16
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use the shorter phpunit syntax for mocked return valuesChristoph Wurst2020-03-252-6/+6
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Move deprecated aliases over to new registrationRoeland Jago Douma2020-03-151-2/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update license headersChristoph Wurst2019-12-058-9/+18
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>