summaryrefslogtreecommitdiffstats
path: root/tests/lib/Encryption
Commit message (Collapse)AuthorAgeFilesLines
* 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