aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_versions/tests
Commit message (Collapse)AuthorAgeFilesLines
* test: Migrate files_versions to PHPUnit 10tests/noid/migrate-files_versionsJoas Schilling2025-05-208-103/+63
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* refactor: Extend rector to core/refactor/rector-coreprovokateurin2025-05-151-1/+1
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* Merge pull request #48560 from nextcloud/fix/migrate-encryption-away-from-hooksCôme Chilliet2025-05-141-2/+6
|\ | | | | feat(encryption): Migrate from hooks to events
| * chore: Assert rename success in versionning testsCôme Chilliet2025-05-131-1/+2
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * chore(files_versions): Only mock getSystemValue method to avoid problems in ↵Côme Chilliet2025-05-131-1/+4
| | | | | | | | | | | | files_versions tests Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | refactor: Apply rector refactoringschore/deps/rector-2.0provokateurin2025-05-141-1/+1
|/ | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* Merge pull request #51355 from AIlkiv/refactor/rollback-hook-usageStephan Orbaugh2025-04-251-8/+10
|\ | | | | refactor: cleanup rollback hook usage
| * refactor: cleanup rollback hook usageailkiv2025-04-251-8/+10
| | | | | | | | Signed-off-by: ailkiv <a.ilkiv.ye@gmail.com>
* | fix(files_versions): Cache previewsprovokateurin2025-03-271-4/+11
|/ | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* refactor: move version rollback hook to eventailkiv2025-02-251-4/+72
| | | | Signed-off-by: ailkiv <a.ilkiv.ye@gmail.com>
* chore: Apply new rector configuration to apps folderCôme Chilliet2025-02-132-34/+37
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* refactor(apps): Use constructor property promotion when possibleprovokateurin2024-10-211-2/+2
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* chore(apps): Apply new rector configuration to autouse classesCôme Chilliet2024-10-152-65/+76
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore: Apply rector configuration to apps folderCôme Chilliet2024-09-202-3/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* refactor: Add void return type to PHPUnit test methodsChristoph Wurst2024-09-157-35/+35
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-252-89/+89
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* chore: Add SPDX headerAndy Scherzinger2024-06-028-171/+20
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix(files_versions): Improve files version listingLouis Chemineau2024-03-061-4/+26
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-231-1/+0
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* don't re-get fileinfo for versioned file if it's not sharedRobin Appelman2023-03-131-1/+0
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* tests(files_versions): Tear down fs to clear mount cache before testingJulius Härtl2023-03-131-1/+8
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* 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>
* Fix versions restoring with S3Louis Chemineau2023-01-261-0/+33
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Fix renaming files_versionsLouis Chemineau2023-01-262-4/+2
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Handle empty files in version creation logicLouis Chemineau2023-01-261-0/+2
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Adapt files_versions tests to modernized hooksLouis Chemineau2023-01-262-2/+2
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Lint and remove file_versions testsLouis Chemineau2022-11-283-365/+0
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Fix dynamic property warning in files_version testsCôme Chilliet2022-09-051-6/+0
| | | | | | | The code had no effect as $storage is not an instance of SharedStorage, the call to setValue failed with a warning. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix many tests and warningsCarl Schwan2022-08-081-2/+6
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Port existing server code to new interfaceCarl Schwan2022-08-081-6/+3
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Replace license information to SPDX expressionLouis Chemineau2022-01-113-4/+4
| | | | 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>
* Add configuration flag to disable the background job for files_versionsDaniel Kesselberg2021-10-111-0/+77
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* test for version expireRobin Appelman2021-08-181-0/+116
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix tests in files_versionsCarl Schwan2021-07-232-7/+3
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-046-8/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Bump js licensesJohn Molakvoæ (skjnldsv)2021-03-313-12/+58
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* 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>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* FIXRoeland Jago Douma2020-12-071-36/+0
| | | | | | | the assertAttributeEquals got removed. So we can't run these tests anymore. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* VersioningTest:729 is unreliable and should be disabledMorris Jobke2020-10-121-0/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-052-7/+7
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* 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-122-8/+8
| | | | | | \PHPUnit\Framework\MockObject\MockObject Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Move files_versions to bootstrap mechanismMorris Jobke2020-07-091-2/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix testsJoas Schilling2020-06-241-0/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update share type constant usageJoas Schilling2020-06-241-7/+7
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update license headers for 19Christoph Wurst2020-04-292-0/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix #19066 - Array offset error due to empty file versions arrayLiam JACK2020-04-121-0/+5
| | | | Signed-off-by: Liam JACK <liamjack@users.noreply.github.com>
* Add visibility to all constantsChristoph Wurst2020-04-102-4/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>