aboutsummaryrefslogtreecommitdiffstats
path: root/apps/encryption/tests
Commit message (Collapse)AuthorAgeFilesLines
* Update license headers for 19Christoph Wurst2020-04-291-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add visibility to all methods and position of static keywordChristoph Wurst2020-04-101-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-1015-65/+4
| | | | | | | | | | | | | | | 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>
* Use elseif instead of else ifChristoph Wurst2020-04-101-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-096-12/+12
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-0913-13/+0
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix (array) indent style to always use one tabChristoph Wurst2020-04-091-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-3110-0/+10
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #20170 from nextcloud/techdebt/remove-unused-importsChristoph Wurst2020-03-271-2/+0
|\ | | | | Remove unused imports
| * Remove unused importsChristoph Wurst2020-03-251-2/+0
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use the short array syntax, everywhereChristoph Wurst2020-03-263-62/+62
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use the shorter phpunit syntax for mocked return valuesChristoph Wurst2020-03-258-20/+20
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-0516-18/+22
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* TO REVERT LATER: fix UserHooksTestRoeland Jago Douma2019-11-271-2/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Mode to modern phpunitRoeland Jago Douma2019-11-279-50/+46
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make phpunit8 compatibleRoeland Jago Douma2019-11-2716-17/+17
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Some php-cs fixesRoeland Jago Douma2019-11-2214-16/+3
| | | | | | | | | | | * 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>
* Fix wrongly mixed mock objects in encryption testsJoas Schilling2019-09-154-73/+53
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Remove deprecated functions from SecureRandomRoeland Jago Douma2018-12-071-2/+0
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* skip already encrypted files on encrypt all commandBjoern Schiessle2018-10-241-0/+33
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* add occ command to recover encrypted files in case of password lostBjoern Schiessle2018-08-161-9/+8
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Fix encryption admin section testsJulius Härtl2018-08-021-2/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* this was a migration step to ownCloud 8.0 to restructure the encryption ↵Bjoern Schiessle2018-03-022-604/+6
| | | | | | folder which is no longer needed Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Class "ProgressBar" is declared "final" and cannot be mocked.Joas Schilling2018-01-251-2/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix risky tests without assertionsJoas Schilling2018-01-252-4/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update license headersMorris Jobke2017-11-0617-0/+37
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use ::class in test mocks of encryption appMorris Jobke2017-10-2614-77/+125
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use ::class in test mocksMorris Jobke2017-10-2410-25/+43
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use DI for IAppManager to encryption migrationMorris Jobke2017-10-241-7/+9
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* print generated encryption key passwords directly after generating the keys ↵Kenneth Newwood2017-09-111-2/+2
| | | | | | so that errors during the encryption do not lead to a potentially massive data loss Signed-off-by: Kenneth Newwood <kenneth@newwood.name>
* adjust encryption tests to the new master key defaultBjoern Schiessle2017-07-061-1/+1
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* improve status messagesBjoern Schiessle2017-07-061-1/+7
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Update comments to NextcloudMorris Jobke2017-04-111-1/+1
| | | | | | | * based on PR by @Ardinis * see #4311 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use master key for public links as wellVincent Petry2017-03-241-19/+20
|
* Add tests for null userVincent Petry2017-03-241-1/+5
|
* always throw a encryption exceptionBjoern Schiessle2017-03-141-1/+1
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* create new encryption keys on password reset and backup the old oneBjoern Schiessle2017-01-102-13/+40
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* check if session is initializedBjoern Schiessle2016-11-232-0/+41
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Fix migration testsRoeland Jago Douma2016-10-131-0/+4
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix encryption appJoas Schilling2016-09-121-1/+1
|
* Fix apps warningsRoeland Jago Douma2016-09-071-1/+2
|
* Fix getMock encryptionRoeland Jago Douma2016-09-0612-24/+54
|
* Use MockBuilder instead of createMockLukas Reschke2016-08-151-6/+6
| | | | CI uses an older PHPUnit
* Add unit testsLukas Reschke2016-08-151-0/+100
|
* Update with robinJoas Schilling2016-07-211-1/+1
|
* Fix apps/Joas Schilling2016-07-2116-33/+49
|
* Update license headersLukas Reschke2016-05-2615-17/+26
|
* Move Encryption app to PSR-4 (#24524)Joas Schilling2016-05-1216-98/+115
| | | | | | | | * Move Encryption to PSR-4 * Move encryption tests to PSR-4 * Fix the tests
* if we don't have a encrypted file key we can return a empty string right awayBjoern Schiessle2016-04-261-0/+30
|
* don't create a private-/public-key pair for each user if the master key is ↵Bjoern Schiessle2016-04-261-3/+17
| | | | enabled