aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Files/Storage/Wrapper
Commit message (Collapse)AuthorAgeFilesLines
* refactor(Wrapper\Encryption): Migrate to strong typesrefactor/stream-encryption/typingsprovokateurin2024-10-071-109/+119
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix(users): Don't crash if disabled user is missing in the databaseartonge/fix/prevent_missing_users_from_crashing_disabled_users_searchLouis Chemineau2024-09-231-3/+6
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* chore(deps): Update nextcloud/coding-standard to v1.3.1provokateurin2024-09-192-2/+2
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* refactor: Add void return type to PHPUnit test methodsChristoph Wurst2024-09-158-72/+72
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-252-3/+3
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Merge branch 'master' into jr-readdir-false-falseJohn Molakvoæ2024-08-168-95/+108
|\ | | | | Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
| * chore: Add SPDX headerAndy Scherzinger2024-05-138-42/+25
| | | | | | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
| * chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-231-7/+7
| | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
| * apply known mtime wrapper for external storagesRobin Appelman2023-09-191-1/+0
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * add wrapper to ensure we don't get an mtime that is lower than we know it isRobin Appelman2023-09-191-0/+71
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * update testsRobin Appelman2023-08-311-46/+10
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * fix!: Remove symfony EventDispatcherInterface from UserJoas Schilling2023-07-271-4/+0
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Clean-up some remaining readdir calls with undesirable false evaluation ↵Josh Richards2023-06-242-2/+2
|/ | | | | | potential Signed-off-by: Josh Richards <josh.t.richards@gmail.com>
* composer run cs:fixCôme Chilliet2023-01-204-19/+15
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* store unencrypted size in the unencrypted_size columnRobin Appelman2022-06-021-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>
* Update Testsacsfer2021-10-221-1/+1
|
* Tests updateacsfer2021-08-151-1/+1
|
* 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
| |
* | 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>
* Add visibility to all constantsChristoph Wurst2020-04-101-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-102-15/+11
| | | | | | | | | | | | | | | 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-265-51/+51
| | | | 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-274-10/+13
| | | | 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-277-12/+12
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.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>
* 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 "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>