aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Files/Storage
Commit message (Collapse)AuthorAgeFilesLines
...
* Add visibility to all constantsChristoph Wurst2020-04-101-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add visibility to all methods and position of static keywordChristoph Wurst2020-04-102-3/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-104-19/+17
| | | | | | | | | | | | | | | 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 the short array syntax, everywhereChristoph Wurst2020-03-268-68/+68
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the shorter phpunit syntax for mocked return valuesChristoph Wurst2020-03-251-5/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add typed create user eventsChristoph Wurst2019-12-031-3/+4
| | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at> Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Mode to modern phpunitRoeland Jago Douma2019-11-275-19/+22
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* More fixesRoeland Jago Douma2019-11-271-6/+15
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make phpunit8 compatibleRoeland Jago Douma2019-11-2711-19/+19
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Some php-cs fixesRoeland Jago Douma2019-11-223-3/+1
| | | | | | | | | | | * 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>
* Merge pull request #17264 from nextcloud/move-from-storage-wrappersRoeland Jago Douma2019-09-261-20/+97
|\ | | | | handle moveFromStorage within the same storage even when storage wrap…
| * handle moveFromStorage within the same storage even when storage wrappers ↵Robin Appelman2019-09-251-20/+97
| | | | | | | | | | | | | | | | | | | | are applied to the source storage the target storage doesn't need additional handling for wrappers as the wrappers implementation of moveFromStorage already deals with that Any storage based on local storage isn't affected by this as local storage already has it's own way of handling with this Signed-off-by: Robin Appelman <robin@icewind.nl>
* | adjust testsArthur Schiwon2019-08-261-41/+53
|/ | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Check for free space on touchJulius Härtl2019-05-281-0/+5
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fix testsJulius Härtl2019-03-011-3/+4
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* fix writeStream for jail wrapperRobin Appelman2018-10-311-0/+17
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Remove HHVM checkChristoph Wurst2018-10-091-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Do not allow folder creation with quota of 0Roeland Jago Douma2018-05-031-0/+5
| | | | | | | | | | Fixes #4577 Users with a quota of 0 are a special case. Since they can't (ever) create files on their own storage. Therefor it makes no real that they can create folders (and possible share those etc). Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix testsRoeland Jago Douma2018-04-041-0/+4
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* reset encryptionVersion to '1' if a file was stream copied, because this ↵Bjoern Schiessle2018-04-031-1/+1
| | | | | | means that we basically write the file from scratch Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Fix risky tests without assertionsJoas Schilling2018-01-251-0/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix "Undefined method setExpectedException()"Joas Schilling2018-01-241-12/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Use ::class in test mocks of encryption appMorris Jobke2017-10-261-4/+4
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use ::class in test mocksMorris Jobke2017-10-242-2/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix encryption testRoeland Jago Douma2017-08-091-2/+3
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix scan permissions with nested permissions masksRobin Appelman2017-07-131-0/+15
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* update file system tests to take the master key into accountBjoern Schiessle2017-07-061-1/+2
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* use unmasked permissions during scanningRobin Appelman2017-05-181-0/+47
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Make sure we use a new encryption module all the timeJoas Schilling2017-04-201-7/+16
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Simplify the testJoas Schilling2017-04-121-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Optimize put - Dont try to fetch filecache for not existing filecache in ↵Piotr M2017-04-121-4/+9
| | | | encription
* Dont use the permissions mask while scanningRobin Appelman2017-04-101-0/+12
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Nuke the legacy storage fallback from orbitVincent Petry2016-12-231-8/+0
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Merge pull request #2411 from nextcloud/fix-encryption-home-storageMorris Jobke2016-12-051-0/+94
|\ | | | | check if the file should really be encrypted before we update the file cache
| * check if the file should really be encrypted before we update the file cacheBjoern Schiessle2016-11-291-0/+94
| | | | | | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* | update testRobin Appelman2016-12-021-1/+1
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Proper DI of configRoeland Jago Douma2016-10-281-3/+3
| | | | | | * Fixed comments Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix getMock QuotaTestRoeland Jago Douma2016-09-131-9/+9
|
* File getMock Files testsRoeland Jago Douma2016-09-071-8/+11
|
* Added storage tests for fopen with special charsVincent Petry2016-07-201-6/+20
| | | | | | This makes it possible to test special chars with unit tests. There is already a test for directories but there was none for file names.
* Remove unneeded checks if it runs on a Windows machineMorris Jobke2016-07-081-8/+0
| | | | * the setup check is still there
* dissalow symlinks in local storages that point outside the datadirRobin Appelman2016-06-071-0/+31
|
* Move Test\Files\Storage\Wrapper\EncodingTest to PSR-4Joas Schilling2016-05-251-0/+203
|
* Move tests/ to PSR-4 (#24731)Joas Schilling2016-05-2013-0/+2548
* Move a-b to PSR-4 * Move c-d to PSR-4 * Move e+g to PSR-4 * Move h-l to PSR-4 * Move m-r to PSR-4 * Move s-u to PSR-4 * Move files/ to PSR-4 * Move remaining tests to PSR-4 * Remove Test\ from old autoloader