aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/tests
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* Fix testsJohn Molakvoæ (skjnldsv)2019-12-021-2/+4
| | | | | 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-3/+3
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make phpunit8 compatibleRoeland Jago Douma2019-11-275-9/+9
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Some php-cs fixesRoeland Jago Douma2019-11-225-6/+6
| | | | | | | | | | | * 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-202-3/+6
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* set retention obligation on existing `expiration` in testsRobin Appelman2019-11-041-4/+8
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fixup! fix tests?Roeland Jago Douma2019-10-311-1/+3
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* fix tests?Roeland Jago Douma2019-10-311-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Emit moveToTrash event only for the deleting userJulius Härtl2019-08-061-1/+4
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add event dispatcher to OCPChristoph Wurst2019-06-251-3/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Do not run fragile TrashbinTestMorris Jobke2019-03-131-2/+4
| | | | | | | | | | | | | | | | | | | | Fails with: There was 1 failure: 1) TrashbinTest::testExpireOldFiles Failed asserting that null is identical to 'file2.txt'. /drone/src/github.com/nextcloud/server/apps/files_trashbin/tests/TrashbinTest.php:186 OR 1) TrashbinTest::testExpireOldFiles Failed asserting that null is identical to 'file2.txt'. /drone/src/github.com/nextcloud/server/apps/files_trashbin/tests/TrashbinTest.php:193 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add test OCA\Files_Trashbin\CapabilitiesUnknown2018-11-011-0/+44
|
* Merge pull request #11573 from nextcloud/gridview-tableMorris Jobke2018-10-241-1/+1
|\ | | | | Files grid view
| * Use grid view in other file views tooJan-Christoph Borchardt2018-10-181-1/+1
| | | | | | | | Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
* | fix trash storage wrapper testsRobin Appelman2018-10-171-0/+3
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | fix preview controller testsRobin Appelman2018-10-171-4/+29
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix mock of ITimeFactoryJoas Schilling2018-10-101-42/+12
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix usage of deprecated OC.webrootChristoph Wurst2018-10-091-8/+8
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* fix trashbin js testsRobin Appelman2018-09-261-143/+141
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix and extend testsRoeland Jago Douma2018-06-291-6/+41
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Adds a test case for the loading symbol in deleted files.Abijeet2018-06-181-2/+8
| | | | Signed-off-by: Abijeet <abijeetpatro@gmail.com>
* Fixed failing test cases for the new actions menu.Abijeet2018-06-181-13/+30
| | | | Signed-off-by: Abijeet <abijeetpatro@gmail.com>
* Previews on for all trashbin filesRoeland Jago Douma2018-06-051-22/+30
| | | | | | | | | | * Previews possible for all files in the trashbin * Set caching * Use the fileid to find the file * Fix test Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Remove OC_App::disable methodTobia De Koninck2018-03-061-1/+1
| | | | Signed-off-by: Tobia De Koninck <tobia@ledfan.be>
* Fix risky tests without assertionsJoas Schilling2018-01-253-2/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>