aboutsummaryrefslogtreecommitdiffstats
path: root/apps/twofactor_backupcodes/tests/Service/BackupCodeStorageTest.php
Commit message (Collapse)AuthorAgeFilesLines
* chore(apps): Apply new rector configuration to autouse classesCôme Chilliet2024-10-151-1/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* refactor: Add void return type to PHPUnit test methodsChristoph Wurst2024-09-151-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* chore: Add SPDX headerAndy Scherzinger2024-05-311-22/+2
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-2/+3
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Format headerJ0WI2021-04-151-2/+0
| | | | Signed-off-by: J0WI <J0WI@users.noreply.github.com>
* 2FA backupcodes: add strict typingJ0WI2021-04-151-0/+3
| | | | Signed-off-by: J0WI <J0WI@users.noreply.github.com>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-241-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to ↵Morris Jobke2020-08-121-1/+1
| | | | | | \PHPUnit\Framework\MockObject\MockObject Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-1/+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 shorter phpunit syntax for mocked return valuesChristoph Wurst2020-03-251-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-051-2/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Make phpunit8 compatibleRoeland Jago Douma2019-11-271-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Clear notification to generate backup code once codes are generatedRoeland Jago Douma2018-10-011-0/+19
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix integration test execution on DronChristoph Wurst2018-08-211-0/+89
Apparently the Nextcloud server ignores tests that have `Integration` in their fully-qualified class name, hence the backup codes integration tests were removed. This moves them up one directory (out of `Integration`) to fix that. Real unit tests remain in the `Unit` directory. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>