aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/tests
Commit message (Collapse)AuthorAgeFilesLines
* feat(files_trashbin): Allow preventing trash to be deleted permanentlyprovokateurin2025-01-131-2/+3
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* refactor(apps): Use constructor property promotion when possibleprovokateurin2024-10-212-18/+19
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* chore(apps): Apply new rector configuration to autouse classesCôme Chilliet2024-10-153-81/+95
| | | | 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>
* chore: Apply rector configuration to apps folderCôme Chilliet2024-09-201-2/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore(deps): Update nextcloud/coding-standard to v1.3.1provokateurin2024-09-191-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-157-44/+44
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-253-9/+9
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* chore: Add SPDX headerAndy Scherzinger2024-06-028-183/+22
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-231-1/+1
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* 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>
* feat(files): favoritesJohn Molakvoæ2023-07-051-1/+1
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* fix(trashbin): Truncate long filenamesChristopher Ng2023-05-311-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>