summaryrefslogtreecommitdiffstats
path: root/tests/lib
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #1820 from nextcloud/4byte-filenamesRoeland Jago Douma2016-10-241-2/+8
|\ | | | | Allow 4byte unicode filenames on supported platforms
| * Added method to DB and fix testRoeland Jago Douma2016-10-241-2/+8
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Fix DateTime comparissonRoeland Jago Douma2016-10-212-5/+5
| | | | | | | | | | | | | | Datetime now returns microseconds. But if the database doesn't store those comparing them for equality most likely fails. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Merge pull request #1835 from nextcloud/downstream-24948Morris Jobke2016-10-202-5/+5
|\ \ | | | | | | Move OC\Files\Storage\Shared to the right namespace
| * | Fix shared storage namespace in DecryptAll classVincent Petry2016-10-201-1/+1
| | |
| * | Move OC\Files\Storage\Shared to the right namespaceJoas Schilling2016-10-201-4/+4
| | |
* | | Get rid of very old oc:// stream wrapper (#26381)Vincent Petry2016-10-201-36/+0
| | |
* | | Merge pull request #1824 from nextcloud/downstream-26423Morris Jobke2016-10-201-7/+8
|\ \ \ | |/ / |/| | Ensure $commands being an array
| * | Ensure $commands being an array - fixes #26073Thomas Müller2016-10-201-0/+1
| | |
| * | use short array syntaxMorris Jobke2016-10-201-7/+7
| |/ | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Restore all services when a tests failed/finished for better testcase isolationJoas Schilling2016-10-201-3/+26
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Make sure all tests use the TestCase method to overwrite servicesJoas Schilling2016-10-204-48/+20
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Do not skip when mysql uses utf8mb4Joas Schilling2016-10-191-1/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix test of repair stepJoas Schilling2016-10-191-6/+10
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix the testJoas Schilling2016-10-191-5/+5
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* only disable unicode test on mysqlMorris Jobke2016-10-191-7/+11
|
* Adding tests for 4 byte unicode charactersMorris Jobke2016-10-191-0/+31
| | | | | * success on SQLite and Postgres * failure on MySQL due to the limited charset that only supports up to 3 bytes
* Merge pull request #1449 from nextcloud/comments-user-mentionMorris Jobke2016-10-172-5/+41
|\ | | | | Notifications for simple @-mentioning in comments
| * emit pre-update event for commentsArthur Schiwon2016-10-121-2/+2
| | | | | | | | | | | | | | * notifications can be cleaned up, no polluted DB * updating comments will re-notify users or remove notifications, depending on the message Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * Notificacations for simple @-mentioning in commentsArthur Schiwon2016-10-072-5/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (WIP) notify user when mentioned in comments Fix doc, and create absolute URL for as notification link. PSR-4 compatibility changes also move notification creation to comments app Do not notify yourself unit test for controller and application smaller fixes - translatable app name - remove doubles in mention array - micro perf optimization - display name: special label for deleted users, keep user id for users that could not be fetched from userManager Comment Notification-Listener Unit Test fix email adresses remove notification when triggering comment was deleted add and adjust tests add missing @license tags simplify NotificationsController registration appinfo simplification, php docs make string easier to translate adjust test replace dispatcher-based listeners with a registration method and interface safer to not pass optional data parameter to setSubject for marking as processed. ID and mention suffices Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de> update comment Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | Merge pull request #1441 from nextcloud/getby-id-less-queriesLukas Reschke2016-10-147-117/+226
|\ \ | | | | | | optimize Folder::getById to use less queries
| * | optimize Folder::getById to use less queriesRobin Appelman2016-10-127-117/+226
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Merge pull request #1037 from nextcloud/no-double-token-updateChristoph Wurst2016-10-141-27/+128
|\ \ \ | |/ / |/| | dont update the auth token twice
| * | Add test to ensure token times are updatedRobin Appelman2016-10-111-24/+128
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | dont update the auth token twiceRobin Appelman2016-10-111-3/+0
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Add tests for commands in info.xmlRoeland Jago Douma2016-10-111-0/+7
| | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | Fix QueryBuilderTestsThomas Müller2016-10-111-10/+10
| | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | Fix typehintRoeland Jago Douma2016-10-101-2/+2
| | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | Cleanup test caseThomas Müller2016-10-101-10/+15
|/ / | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Merge pull request #1660 from nextcloud/add-notification-icon-to-apiChristoph Wurst2016-10-101-0/+28
|\ \ | | | | | | Add an icon to the notification API
| * | Add an icon to the notification APIJoas Schilling2016-10-071-0/+28
| |/ | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #1663 from nextcloud/dont-reparse-info-xmlMorris Jobke2016-10-102-25/+26
|\ \ | | | | | | Dont reparse info xml + cache AppInfo XML
| * | Cache AppInfo in Memory Cache if configuredLukas Reschke2016-10-071-11/+25
| | | | | | | | | | | | | | | | | | | | | | | | This saves around 20ms on a bare-bone instance, on bigger ones more (depending on the number of installed apps). See https://blackfire.io/profiles/compare/fc326ad3-100d-49b8-8ea9-8343240f53f3/graph Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
| * | Don't parse info.xml but reuse already cached app infos - fixes #25603 (#25968)Thomas Müller2016-10-072-17/+4
| |/ | | | | | | | | | | | | | | * Don't parse info.xml but reuse already cached app infos - fixes #25603 * Use === in InfoParser. Fixes test * InfoParser should not depend on UrlGenerator - fixes issue with session being closed too early
* | Merge pull request #1656 from nextcloud/appinfo-check-class-existanceChristoph Wurst2016-10-101-0/+122
|\ \ | | | | | | Make sure all the jobs, command, provides and migrations are valid
| * | Make sure all the jobs, command, provides and migrations are validJoas Schilling2016-10-071-0/+122
| |/ | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* / Simplify isSubDirectory checkLukas Reschke2016-10-071-13/+0
|/ | | | | | Shaves off another 9ms per request as can be seen at https://blackfire.io/profiles/compare/dd54cef3-e58d-4a22-b8f4-c7c4b70697be/graph Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Prefilter inaccessible shares in DefaultShareProvider::getSharedWith()Vincent Petry2016-10-061-23/+158
| | | | | | | | | | | The DefaultShareProvider now does a DB-level check to find out whether file_source is accessible at all (deleted file) or whether it's in the trashbin of a home storage. One small corner case where the home storage id is in md5 form cannot be covered properly with this approach. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Merge pull request #1306 from nextcloud/simplefsLukas Reschke2016-10-066-20/+440
|\ | | | | Introducing AppData
| * Fix avatar testsRoeland Jago Douma2016-10-051-10/+10
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * avatar to appdataRoeland Jago Douma2016-10-051-10/+12
| | | | | | | | | | | | * Fix AvatarTest Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * Add TestsRoeland Jago Douma2016-10-054-0/+418
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Generate coverage for quick DB testsLukas Reschke2016-10-051-2/+4
|/ | | | | | This adds the "QUICKDB" group which excludes some tests that abuse unit tests as integration tests as displayed in https://github.com/nextcloud/server/issues/1626 Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Do not use underscores in PSR4 namespaces of the backup codes appChristoph Wurst2016-10-031-3/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove database requirement from testLukas Reschke2016-10-031-17/+57
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Merge pull request #1582 from nextcloud/make-comments-100-testedLukas Reschke2016-09-301-0/+4
|\ | | | | Add test for setTopmostParentId and getTopmostParentId
| * Add test for setTopmostParentId and getTopmostParentIdLukas Reschke2016-09-291-0/+4
| | | | | | | | | | | | This wasn't tested before as proven by the coverage data. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* | Only trigger postDelete hooks when the user was deleted...Joas Schilling2016-09-291-4/+5
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Make sure that comments, notifications and preferences are deletedJoas Schilling2016-09-291-11/+74
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #1549 from nextcloud/kill-update-simulationMorris Jobke2016-09-281-21/+7
|\ | | | | Kill update simulation