summaryrefslogtreecommitdiffstats
path: root/tests/lib/Encryption/UtilTest.php
Commit message (Collapse)AuthorAgeFilesLines
* Remove failing test that works with mocks only anywayJoas Schilling2023-02-021-41/+0
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix codestyle in modified filesCôme Chilliet2022-12-051-3/+0
| | | | 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>
* Add unit tests for encryption's isSystemWideMountPointVincent Petry2022-06-011-0/+41
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to ↵Morris Jobke2020-08-121-5/+5
| | | | | | \PHPUnit\Framework\MockObject\MockObject Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-3/+0
| | | | | | | | | | | | | | | 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 the short array syntax, everywhereChristoph Wurst2020-03-261-27/+27
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the shorter phpunit syntax for mocked return valuesChristoph Wurst2020-03-251-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Mode to modern phpunitRoeland Jago Douma2019-11-271-4/+4
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make phpunit8 compatibleRoeland Jago Douma2019-11-271-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Use ::class in test mocks of encryption appMorris Jobke2017-10-261-1/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use ::class in test mocksMorris Jobke2017-10-241-1/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix getMock EncryptionRoeland Jago Douma2016-09-071-2/+3
|
* Move tests/ to PSR-4 (#24731)Joas Schilling2016-05-201-0/+191
* 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