summaryrefslogtreecommitdiffstats
path: root/apps/files_versions/tests
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-103-20/+8
| | | | | | | | | | | | | | | 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-092-7/+7
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-091-1/+0
| | | | | | 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-272-2/+0
|\ | | | | Remove unused imports
| * Remove unused importsChristoph Wurst2020-03-252-2/+0
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use the short array syntax, everywhereChristoph Wurst2020-03-262-99/+99
| | | | | | | | 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>
* Move deprecated aliases over to new registrationRoeland Jago Douma2020-03-151-3/+3
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #18231 from nextcloud/fix/shared_version_restoreRoeland Jago Douma2019-12-091-4/+56
|\ | | | | Fix restoring shared versions
| * update testsRobin Appelman2019-12-051-4/+56
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Update license headersChristoph Wurst2019-12-056-7/+14
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix testsJohn Molakvoæ (skjnldsv)2019-12-021-1/+0
| | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Mode to modern phpunitRoeland Jago Douma2019-11-273-5/+5
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make phpunit8 compatibleRoeland Jago Douma2019-11-273-6/+6
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Some php-cs fixesRoeland Jago Douma2019-11-222-4/+3
| | | | | | | | | | | * 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-0/+7
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* add way for version backends to programmatically specify if they should be usedRobin Appelman2019-05-211-0/+84
| | | | | | this allows for backends that should only be used if specific conditions are met Signed-off-by: Robin Appelman <robin@icewind.nl>