summaryrefslogtreecommitdiffstats
path: root/tests/lib
Commit message (Collapse)AuthorAgeFilesLines
* Implement scss variable injection by OC_DefaultsJulius Haertl2017-04-251-23/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Julius Haertl <jus@bitgrid.net> Add Scss variables to example theme and theming app Signed-off-by: Julius Haertl <jus@bitgrid.net> Use SCSSCacher to build theming css Signed-off-by: Julius Härtl <jus@bitgrid.net> Update theming.scss Signed-off-by: Julius Härtl <jus@bitgrid.net> Code cleanup Signed-off-by: Julius Härtl <jus@bitgrid.net> Fix tests Signed-off-by: Julius Härtl <jus@bitgrid.net> Inject SCSSCacher for easier testing Signed-off-by: Julius Härtl <jus@bitgrid.net> Fix typehint Signed-off-by: Lukas Reschke <lukas@statuscode.ch> Generate absolute URLs Signed-off-by: Lukas Reschke <lukas@statuscode.ch> Fix tests to always use absolute urls for theming images Signed-off-by: Julius Härtl <jus@bitgrid.net> MailheaderColor -> ColorPrimary Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add unit tests for mounts of delete usersJoas Schilling2017-04-241-0/+24
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Make sure we use a new encryption module all the timeJoas Schilling2017-04-201-7/+16
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Use the correct Dummy and Backend classJoas Schilling2017-04-201-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Kill dead codeJoas Schilling2017-04-201-125/+0
| | | | | | > No tests found in class "Test\Share\MailNotificationsTest". Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix warning with undefined methodJoas Schilling2017-04-201-4/+4
| | | | | | | | Trying to configure method "getRemember" which cannot be configured because it does not exist, has not been specified, is final, or is static Signed-off-by: Joas Schilling <coding@schilljs.com>
* Don't use deprecated getMock() anymoreJoas Schilling2017-04-203-16/+18
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Restoring the error handler within the error handler causes unexpected resultsJoas Schilling2017-04-201-3/+10
| | | | | | | See http://php.net/manual/en/function.restore-error-handler.php#120879 for more information. Signed-off-by: Joas Schilling <coding@schilljs.com>
* Delete the correct config valueJoas Schilling2017-04-201-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #4398 from nextcloud/fix_accesslistcodeJoas Schilling2017-04-201-2/+1
|\ | | | | Get proper accesslist for userFolder
| * Get proper accesslist for userFolderRoeland Jago Douma2017-04-201-2/+1
| | | | | | | | | | | | | | If the accesslist is requested for a users root folder we should properly construct the path Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Rename renderHTML to renderHtmlMorris Jobke2017-04-191-4/+4
|/ | | | | | | * fixes #4383 * improves consistency Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #4371 from nextcloud/dont-allow-dot-usernamesMorris Jobke2017-04-181-0/+43
|\ | | | | Better validation of allowed user names
| * Better validation of allowed user namesJoas Schilling2017-04-181-0/+43
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #4369 from nextcloud/fix-translationsMorris Jobke2017-04-182-3/+3
|\ \ | | | | | | Fix translations
| * | Fix translationsJoas Schilling2017-04-182-3/+3
| |/ | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* / Fix unit testsMorris Jobke2017-04-181-1/+1
|/ | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #2834 from nextcloud/accesListToShareManagerMorris Jobke2017-04-153-8/+532
|\ | | | | Access list to share manager
| * Add more tests for the share helperJoas Schilling2017-04-131-0/+111
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * Activate the testJoas Schilling2017-04-131-1/+1
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * Adjust docs and make !$currentAccess simplerJoas Schilling2017-04-131-4/+12
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * Fix share manager testJoas Schilling2017-04-131-13/+24
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * Fix default share providerJoas Schilling2017-04-131-10/+10
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * Fix tests for ShareHelperJoas Schilling2017-04-131-44/+70
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * Add shareHelper testRoeland Jago Douma2017-04-131-0/+94
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * Add mail element to access listRoeland Jago Douma2017-04-132-4/+0
| | | | | | | | | | | | | | | | * Each provider just returns what they have so adding an element won't require changing everything * Added tests Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * Offload acceslist creation to providersRoeland Jago Douma2017-04-132-41/+232
| | | | | | | | | | | | | | | | * This allows for effective queries. * Introduce currentAccess parameter to speciy if the users needs to have currently acces (deleted incomming group share). (For notifications) Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * Fix testsRoeland Jago Douma2017-04-131-0/+6
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * Add owner to access listRoeland Jago Douma2017-04-131-1/+1
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * Add getAccessList to ShareManagerRoeland Jago Douma2017-04-131-1/+82
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Make BruteForceProtection annotation more cleverLukas Reschke2017-04-133-75/+196
| | | | | | | | | | | | | | | | This makes the new `@BruteForceProtection` annotation more clever and moves the relevant code into it's own middleware. Basically you can now set `@BruteForceProtection(action=$key)` as annotation and that will make the controller bruteforce protected. However, the difference to before is that you need to call `$responmse->throttle()` to increase the counter. Before the counter was increased every time which leads to all kind of unexpected problems. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* | Merge pull request #4308 from nextcloud/lost-password-emailLukas Reschke2017-04-131-1/+2
|\ \ | | | | | | Update email template for lost password email
| * | Update email template for lost password emailMorris Jobke2017-04-121-1/+2
| | | | | | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | | Remove expired attemptsLukas Reschke2017-04-131-5/+13
| | | | | | | | | | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* | | Add tests for multiple parametersLukas Reschke2017-04-131-5/+19
| | | | | | | | | | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* | | Move to dedicated MiddleWareLukas Reschke2017-04-132-40/+287
| | | | | | | | | | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* | | Add support for ratelimiting via annotationsLukas Reschke2017-04-135-49/+398
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | This allows adding rate limiting via annotations to controllers, as one example: ``` @UserRateThrottle(limit=5, period=100) @AnonRateThrottle(limit=1, period=100) ``` Would mean that logged-in users can access the page 5 times within 100 seconds, and anonymous users 1 time within 100 seconds. If only an AnonRateThrottle is specified that one will also be applied to logged-in users. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* | Merge pull request #3966 from nextcloud/downstream-26570Lukas Reschke2017-04-131-0/+21
|\ \ | |/ |/| Override config.php values through environment variables
| * Check for boolean false and add testsMorris Jobke2017-04-041-0/+15
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
| * OC_ -> NC_Morris Jobke2017-04-041-1/+1
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
| * Override config.php values through ENV variables (#26570)Philipp Schaffrath2017-04-041-0/+6
| | | | | | | | | | | | | | | | * added functionality to override config.php values with 'OC_' prefixed environment variables * use getenv to read environment variables since apache does not set $_ENV variables, fixed test Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Merge pull request #4307 from nextcloud/sharing-emailsRoeland Jago Douma2017-04-121-0/+42
|\ \ | | | | | | New emails for sharebymail
| * | Use instance name as alt-textJoas Schilling2017-04-121-0/+4
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * | Add addBodyButton to add a single button to email templatesMorris Jobke2017-04-121-0/+38
| | | | | | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | | Merge pull request #4325 from nextcloud/downstream-27522Roeland Jago Douma2017-04-121-4/+9
|\ \ \ | |/ / |/| | Optimize put - Dont try to fetch filecache for not existing filecache…
| * | Simplify the testJoas Schilling2017-04-121-1/+1
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * | Optimize put - Dont try to fetch filecache for not existing filecache in ↵Piotr M2017-04-121-4/+9
| | | | | | | | | | | | encription
* | | Merge pull request #3614 from nextcloud/discover-federatedsharing-endpointsBjörn Schießle2017-04-122-6/+105
|\ \ \ | |/ / |/| | Discover federatedsharing endpoints
| * | remove discovery manager in favour of the OCSDiscoveryServiceBjoern Schiessle2017-04-111-6/+6
| | | | | | | | | | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
| * | add tests for discovery serviceBjoern Schiessle2017-04-111-0/+99
| | | | | | | | | | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>