summaryrefslogtreecommitdiffstats
path: root/tests/lib/Files/Storage
Commit message (Collapse)AuthorAgeFilesLines
* store unencrypted size in the unencrypted_size columnRobin Appelman2022-06-031-3/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix codestyleCôme Chilliet2022-03-241-1/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Migrate from ILogger to LoggerInterface where needed in the testsCôme Chilliet2022-03-241-7/+6
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Normalize directory entries in Encoding wrapperVincent Petry2021-11-171-1/+43
| | | | | | | | | | | | Directory entry file names are now normalized in getMetaData(), getDirectoryContents() and opendir(). This makes the scanner work properly as it assumes pre-normalized names. In case the names were not normalized, the scanner will now skip the entries and display a warning when applicable. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Merge pull request #27440 from nextcloud/is-file-handleJohn Molakvoæ2021-10-231-2/+2
|\
| * Update Testsacsfer2021-10-221-1/+1
| |
| * Tests updateacsfer2021-08-151-1/+1
| |
* | ciRobin Appelman2021-10-151-0/+3
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | explicitly close source stream on local storageDaniel Kesselberg2021-09-211-1/+2
|/ | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Merge pull request #24966 from nextcloud/jknockaert-patch-1Lukas Reschke2021-04-061-4/+14
|\ | | | | avoid fread on directories and unencrypted files
| * Update EncryptionTest.phpJasper Knockaert2021-01-051-3/+3
| |
| * 2nd attempt to fix testsJasper Knockaert2021-01-051-7/+11
| |
| * attemtp to fix testJasper Knockaert2021-01-051-1/+7
| |
* | Set umask before operations that create local filesRobin Appelman2021-03-231-3/+34
| | | | | | | | | | | | this solves issues where "other php stuff" is messing with the umask Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Bump nextcloud/coding-standard from 0.3.0 to 0.5.0dependabot-preview[bot]2021-02-181-2/+2
| | | | | | | | | | | | | | | | | | | | Bumps [nextcloud/coding-standard](https://github.com/nextcloud/coding-standard) from 0.3.0 to 0.5.0. - [Release notes](https://github.com/nextcloud/coding-standard/releases) - [Changelog](https://github.com/nextcloud/coding-standard/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/coding-standard/compare/v0.3.0...v0.5.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Cache the user backend info for 300sJoas Schilling2021-02-151-3/+19
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix code styleMorris Jobke2020-09-091-1/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Make sure tests cover the new mkdir behaviour on 0 quotaJulius Härtl2020-09-081-1/+11
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to ↵Morris Jobke2020-08-121-17/+17
| | | | | | \PHPUnit\Framework\MockObject\MockObject Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix getDirectoryContent implementation for Jail wrapperRobin Appelman2020-04-301-0/+15
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* 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>