summaryrefslogtreecommitdiffstats
path: root/tests/lib/Encryption
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' into enh/type-iconfig-getter-callsCôme Chilliet2023-04-201-0/+4
|\ | | | | Signed-off-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
| * fix: Adjust console formatter code to match with Symfony type hintsFerdinand Thiessen2023-04-171-0/+4
| | | | | | | | | | | | | | Symfony has added type hints on the `OutputFormatterInterface`, so we must adjust our type hints to match with Symfony. Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
* | Adapt tests to config value typingCôme Chilliet2023-04-052-14/+14
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Remove failing test that works with mocks only anywayJoas Schilling2023-02-021-41/+0
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* composer run cs:fixCôme Chilliet2023-01-204-5/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix codestyle in modified filesCôme Chilliet2022-12-051-3/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Merge branch 'master' into tests/fix-phpunit-warningsCôme Chilliet2022-12-051-4/+5
|\ | | | | Signed-off-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
| * Add Union types for properties in tests/lib/Encryption/Keys/StorageTest.phpCôme Chilliet2022-11-151-3/+3
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * Fix dynamic properties and other problems in tests for PHP 8.2Côme Chilliet2022-11-141-4/+5
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Attempt to fix CalendarImpl testsJulius Härtl2022-11-091-0/+2
|/ | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Remove OCP\App and OCP\BackgroundJobCarl Schwan2022-08-011-19/+10
| | | | | | | | | | Both deprecated since NC 23 IAppManager is the replacement for OCP\App unfortunately it can't be dependency injected in classes used by the installed otherwise the database connection is initialised too early Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Remove some more at matchers in tests/libCôme Chilliet2022-06-202-29/+36
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Add unit tests for encryption's isSystemWideMountPointVincent Petry2022-06-011-0/+41
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Migrate from ILogger to LoggerInterface where needed in the testsCôme Chilliet2022-03-242-7/+6
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Check style updateCarl Schwan2022-01-131-1/+1
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix Encryption tests on PHP 8.1Côme Chilliet2021-11-231-2/+11
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Log and continue when failing to update encryption keys during for ↵Julius Härtl2021-03-191-13/+17
| | | | | | individual files Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-051-4/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* New SSE key formatRoeland Jago Douma2020-08-201-13/+114
| | | | | | | * Encrypt the keys with the instance secret * Store them as json (so we can add other things if needed) Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to ↵Morris Jobke2020-08-126-37/+37
| | | | | | \PHPUnit\Framework\MockObject\MockObject Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-106-31/+24
| | | | | | | | | | | | | | | 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-094-11/+11
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-093-3/+0
| | | | | | For PSR2 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-83/+83
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use the shorter phpunit syntax for mocked return valuesChristoph Wurst2020-03-252-5/+5
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Mode to modern phpunitRoeland Jago Douma2019-11-275-14/+15
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make phpunit8 compatibleRoeland Jago Douma2019-11-276-6/+6
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Some php-cs fixesRoeland Jago Douma2019-11-223-3/+0
| | | | | | | | | | | * 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>
* update encryption wrapper testsRobin Appelman2018-11-291-7/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* skip already decrypted files on decrypt all commandBjoern Schiessle2018-10-241-10/+31
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Class "ProgressBar" is declared "final" and cannot be mocked.Joas Schilling2018-01-251-2/+5
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix "Undefined method setExpectedException()"Joas Schilling2018-01-241-0/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Use ::class in test mocks of encryption appMorris Jobke2017-10-264-9/+16
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use ::class in test mocks of dav appMorris Jobke2017-10-261-1/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use ::class in test mocksMorris Jobke2017-10-244-5/+9
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Don't use deprecated getMock() anymoreJoas Schilling2017-04-201-14/+14
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix translationsJoas Schilling2017-04-181-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* create new encryption keys on password reset and backup the old oneBjoern Schiessle2017-01-101-0/+43
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Fix shared storage namespace in DecryptAll classVincent Petry2016-10-201-1/+1
|
* Move OC\Files\Storage\Shared to the right namespaceJoas Schilling2016-10-201-4/+4
|
* Fix getMock DecryptAllTestRoeland Jago Douma2016-09-131-1/+2
|
* Fix getMock EncryptionRoeland Jago Douma2016-09-073-14/+25
|
* skip shared files, if files get decrypted only for a specific user we ↵Bjoern Schiessle2016-07-271-3/+14
| | | | shouldn't touch files owned by a different user.
* Allow to decrypt user '0' files onlyJoas Schilling2016-06-071-12/+23
|
* fix unit testsBjörn Schießle2016-05-301-3/+4
|
* Move tests/ to PSR-4 (#24731)Joas Schilling2016-05-206-0/+1638
* 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