aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_versions/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* 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>
* modular versions apiRobin Appelman2018-11-011-18/+37
| | | | | | | Allows apps to register version backends for storage types The existing versions backend is wrapped in a "legacy" backend. Signed-off-by: Robin Appelman <robin@icewind.nl>
* Set error expected by the DAV client for a failed moveDaniel Calviño Sánchez2018-10-251-2/+10
| | | | | | | | | | | | | A revert triggers a move in the DAV client, and the DAV client expects a DAV error message to be provided by the server in case of failure; if no error message is given the client ends trying to get an attribute from an undefined object and "crashes". Besides that, if the revert fails the "done" callback of the promise (the first parameter of "then") is never called, so a "fail" callback should be used instead. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Wait for the promise to be fulfilled before running the next testDaniel Calviño Sánchez2018-10-251-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | In Jasmine 2.5 the "it" function takes an optional parameter that should be called when the async work is completed (returning a promise was introduced in Jasmine 2.7, so it is not supported yet in the tests). If the parameter is not declared then the next test is executed without waiting for the asynchronous work in the previous one to finish, which could cause that asynchronous work to finish while a different test is being run. Note that if that happens the test could still work as expected if it relied only in local variables. However, in the case of the successful revert tests, the stubs being checked are not the ones created when that test was initialized, but the ones created when the next test, the failed revert test, was initialized and the previous variables were replaced (although the model itself calls the proper stubs, as they are set through parameters in function calls). Besides all that, the checks in the failed revert test were never executed due to a different problem which will be fixed in the next commit. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* move versions webui over to the dav apiRobin Appelman2018-10-113-224/+38
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix mock of ITimeFactoryJoas Schilling2018-10-101-41/+12
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix risky tests without assertionsJoas Schilling2018-01-251-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Change @georgehrke's emailMorris Jobke2017-11-061-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headersMorris Jobke2017-11-062-0/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use ::class in test mocks of dav appMorris Jobke2017-10-261-1/+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>
* Remove legacy OC_User_Backend and OC_User_InterfaceRoeland Jago Douma2017-07-241-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Proper exception for upload of .htaccess file via WebDAVMorris Jobke2017-05-081-12/+12
| | | | | | * fixes #2860 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* added quit option in commentstabview.jsnoveens2017-03-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | added quit option in notif in app.js added quit option in notif in file-upload.js added quit option in notif in fileinfomodel.js added quit option in notif in filelist.js added quit option in notif in filelist.js added quit option in notif in tagsplugin.js added quit option in notif in statusmanager.js added quit option in notif in external.js added quit option in notif in versionstabview.js added quit option in notif in notification.js changes according to the latest review. timeout removed since there is a button to close it translation capability added typo fixed test files updated small errors fixed Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Properly expire ext storage versions (#26601)Vincent Petry2017-03-101-1/+13
| | | | | | | | | | | | | | | | | | * Properly expire ext storage versions System-wide external storages have no real owner so the current user is used as owner. However when running cron.php there is no current user, so no expiry can be done. This fix adds an user argument to the expire() function to tell for which user to expire files. This information is anyway always available now through the expire command job. * Move version expire setupFS into the expire function * Add comment about not tearing down in version Storage::expire() Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Fix js testsRoeland Jago Douma2016-11-291-8/+11
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Display changes in file versions tab view and detailsView (#26511)Michael Jobst2016-11-141-1/+2
| | | | | | | | | | | * Display changes in file versions tab view and detailsView * versions tab enhancements enhanced js test file removed css superscript attribute for version size * Replaced spaces with tabs
* More testsRoeland Jago Douma2016-11-031-0/+167
| | | | | | | | | * PreviewController test * PublicPreview test * Versions Preview test * Trash Preview test Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Move OC\Files\Storage\Shared to the right namespaceJoas Schilling2016-10-201-1/+1
|
* Fix getMock files_versionsRoeland Jago Douma2016-09-061-1/+2
|
* Update with robinJoas Schilling2016-07-211-1/+1
|
* Fix apps/Joas Schilling2016-07-214-8/+12
|
* Hide revert button when no permission to revertVincent Petry2016-06-282-2/+64
|
* Update license headersLukas Reschke2016-05-262-4/+5
|
* Move files_versions to PSR-4 (#24571)Joas Schilling2016-05-124-2/+4
|
* Fix testsRoeland Jago Douma2016-04-191-30/+51
|
* apps: Fix typos (found by codespell) (#23862)Stefan Weil2016-04-121-2/+2
| | | Signed-off-by: Stefan Weil <sw@weilnetz.de>
* set watch policy in testRobin Appelman2016-03-211-0/+15
|
* Update author informationLukas Reschke2016-03-011-0/+1
| | | | Probably nice for the people that contributed to 9.0 to see themselves in the AUTHORS file :)
* versions provide more information when throwing hooksArthur Schiwon2016-02-081-1/+3
|
* cleanup shared cacheRobin Appelman2016-01-281-2/+2
|
* Safe teardownsRobin Appelman2016-01-141-4/+6
|