summaryrefslogtreecommitdiffstats
path: root/tests/lib
Commit message (Collapse)AuthorAgeFilesLines
* CSP: Allow fonts to be provided in dataRoeland Jago Douma2019-01-075-63/+63
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #12621 from nextcloud/td/12224/cleanup_middleware_registeringRoeland Jago Douma2019-01-071-9/+10
|\ | | | | Cleanup middleware registering
| * Cleanup middleware registeringRoeland Jago Douma2019-01-031-9/+10
| | | | | | | | | | | | | | | | | | Fixes #12224 Since we only use the middleware at 1 location it makes no sense to register them in each and every container. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Merge pull request #10555 from nextcloud/bugfix/10518/only-check-added-itemsblizzz2019-01-031-15/+95
|\ \ | |/ |/| Only enforce schema limits for supported apps
| * Update the tests to the comparison logicJoas Schilling2018-12-171-15/+95
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Use a case insensitive search for emailRoeland Jago Douma2018-12-201-2/+3
| | | | | | | | | | | | | | | | Fixes #7084 Now entering wrongly cased email (roeland@ instead of Roeland@) for password reset etc. Will also work. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Merge pull request #13116 from ↵Roeland Jago Douma2018-12-191-53/+90
|\ \ | | | | | | | | | | | | nextcloud/fix/only_trust_xforwardedhost_for_trusted_proxies Only trust the X-FORWARDED-HOST header for trusted proxies
| * | Only trust the X-FORWARDED-HOST header for trusted proxiesRoeland Jago Douma2018-12-171-53/+90
| | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | Merge pull request #12766 from stalker314314/streaming-optionsJohn Molakvoæ2018-12-181-0/+22
|\ \ \ | |/ / |/| | Expose Swift Mailer streaming options in config, fixes #12702
| * | Addressing comments, array() to []Branko Kokanovic2018-12-171-2/+2
| | | | | | | | | | | | Signed-off-by: Branko Kokanovic <branko@kokanovic.org>
| * | Expose Swift Mailer streaming options in config, fixes #12702Branko Kokanovic2018-11-301-0/+22
| | | | | | | | | | | | Signed-off-by: Branko Kokanovic <branko@kokanovic.org>
* | | Merge pull request #12883 from nextcloud/appdata-performanceJoas Schilling2018-12-172-18/+12
|\ \ \ | |_|/ |/| | try to grab the appdata folder directly without going trough the whole tree
| * | use a fresh appdata factory in background job testRobin Appelman2018-12-061-1/+5
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | try to grab the appdata folder directly without going trough the whole treeRobin Appelman2018-12-061-17/+7
| |/ | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Remove deprecated functions from SecureRandomRoeland Jago Douma2018-12-071-4/+0
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Merge pull request #12891 from nextcloud/theming-cachingRoeland Jago Douma2018-12-071-1/+1
|\ \ | | | | | | more caching for theming
| * | more caching for themingRobin Appelman2018-12-071-1/+1
| |/ | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Log and continue on Dav reader failureJohn Molakvoæ (skjnldsv)2018-12-051-2/+9
| | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | Fix typo in "incoming"Joas Schilling2018-12-051-1/+1
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #12691 from nextcloud/storage-no-encryption-interfaceMorris Jobke2018-11-291-7/+1
|\ | | | | Add interface to allow storages from opting out of encryption
| * update encryption wrapper testsRobin Appelman2018-11-291-7/+1
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Add testcases for pipe modeDaniel Kesselberg2018-11-292-12/+44
|/ | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Fix folder path containing leading slash when getting mount root by idRobin Appelman2018-11-281-0/+48
| | | | | | | | This fixes collabora on public link shared groupfolders Fixes https://github.com/nextcloud/groupfolders/issues/225 Signed-off-by: Robin Appelman <robin@icewind.nl>
* Allow empty strings in getAbsoluteURLJoas Schilling2018-11-201-0/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update the URLGenerator test to current state of artJoas Schilling2018-11-201-32/+30
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* add test for non existing file by idRobin Appelman2018-11-191-0/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #11942 from nextcloud/techdebt/noid/use-count-functionMorris Jobke2018-11-125-5/+5
|\ | | | | Use the defined func()->count() instead of manual counting
| * Use the defined func()->count() instead of manual countingJoas Schilling2018-11-085-5/+5
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #12371 from ↵Morris Jobke2018-11-121-2/+1
|\ \ | | | | | | | | | | | | nextcloud/bugfix/12369/catch-unique-constraint-violation-exception-in-insertIfNotExist Catch UniqueConstraintViolationException inside insertIfNotExist
| * | Exception is not thrown anymoreMorris Jobke2018-11-121-2/+1
| |/ | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* / Make sure to always load the latest icons-vars.css fileJulius Härtl2018-11-121-1/+6
|/ | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #12313 from nextcloud/generated-avatar-major-cleanupRoeland Jago Douma2018-11-081-0/+82
|\ | | | | Clear avatar cache with frontend repair
| * Clear avatar cache with frontend repairJohn Molakvoæ (skjnldsv)2018-11-081-0/+82
| | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | Merge pull request #11836 from ↵Morris Jobke2018-11-071-2/+5
|\ \ | | | | | | | | | | | | nextcloud/bugfix/2443/comment-mentions-with-spaces Comment mentions with spaces
| * | Match mentions when the username is wrapped in quotesJoas Schilling2018-11-071-2/+5
| |/ | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* / Add test that unique constraint is workingDaniel Kesselberg2018-11-061-0/+13
|/ | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Merge pull request #12185 from nextcloud/cleanup/dicontainerMorris Jobke2018-11-052-17/+7
|\ | | | | Cleanup the DIContainer
| * Fix testsRoeland Jago Douma2018-11-022-17/+7
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Merge pull request #12071 from nextcloud/addressbook-uid-check-migrationRoeland Jago Douma2018-11-021-0/+121
|\ \ | |/ |/| Addressbook uid check migration
| * Merge branch 'addressbook-uid-check-migration' of ↵John Molakvoæ (skjnldsv)2018-11-018-35/+228
| |\ | | | | | | | | | | | | | | | https://github.com/nextcloud/server into addressbook-uid-check-migration Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
| | * TestsJohn Molakvoæ (skjnldsv)2018-11-011-0/+121
| | | | | | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
| * | Fix phpunitJohn Molakvoæ (skjnldsv)2018-11-011-20/+20
| | | | | | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
| * | TestsJohn Molakvoæ (skjnldsv)2018-10-301-0/+121
| | | | | | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | | Merge pull request #11404 from flokli/sendmail-pathRoeland Jago Douma2018-11-021-1/+7
|\ \ \ | | | | | | | | Mailer: discover sendmail path instead of hardcoding it to /usr/sbin/sendmail
| * | | Fallback to default path is sendmail can't be foundRoeland Jago Douma2018-11-021-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the sendmail binary can't be found at all we fallback to the default path. It most likely is not there but then at least a proper error message pops up. Updated the tests to also properly pass. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | | Merge pull request #11875 from ↵Roeland Jago Douma2018-11-021-2/+59
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | nextcloud/add-support-for-sending-the-password-for-a-link-share-by-nextcloud-talk Add support for sending the password for a link share by Nextcloud Talk
| * | | | Store "sendPasswordByTalk" property of link shares in the databaseDaniel Calviño Sánchez2018-11-021-0/+9
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
| * | | | Fix update share testsDaniel Calviño Sánchez2018-11-021-2/+50
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The update share tests only checked that the share returned by "update()" had the expected values. However, as "update()" returns the same share that was given as a parameter the tests were not really verifying that the values were updated in the database. In a similar way, the test that checked that a password was removed did not set a password first, so even if the database returned null it could be simply returning the default value for the share; a password must be set first to ensure that it is removed. Besides that, a typo was fixed too that made the checks on the original share instead of on the one returned by "update()"; right now it is the same share, so the change makes no difference, but it is how the check should be done anyway. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* / / / Cleanup some unused sharing methods from the old sharing codeMorris Jobke2018-11-021-1/+6
|/ / / | | | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | / Revert "Wait for cron to finish before running upgrade command"Morris Jobke2018-11-011-8/+1
| |/ |/| | | | | | | | | This reverts commit 18e9631810ad1d3d72c2b4bbee330169808108ad. Signed-off-by: Morris Jobke <hey@morrisjobke.de>