summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Adjust tags acceptance tests to moved admin sectionJulius Härtl2019-11-281-3/+3
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Adjust DirectEditing test to PHPUnit8Julius Härtl2019-11-281-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #17625 from nextcloud/enh/noid/direct-editingRoeland Jago Douma2019-11-281-0/+172
|\ | | | | Direct editing API to allow file editing using a one-time token
| * Add mimetype to creatorsJulius Härtl2019-11-271-0/+4
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * Code style fixes and cleanupJulius Härtl2019-11-271-2/+18
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * Direct editing token testsJulius Härtl2019-11-271-0/+152
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Merge pull request #17725 from nextcloud/enh/share_exp_internalRoeland Jago Douma2019-11-281-1/+2
|\ \ | | | | | | Allow internal shares to have a default expiration date
| * | Fix testsRoeland Jago Douma2019-11-271-1/+2
| |/ | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Merge pull request #18064 from nextcloud/feature/php74Roeland Jago Douma2019-11-28395-1365/+1439
|\ \ | | | | | | Add php7.4 support
| * | remove test caseRoeland Jago Douma2019-11-271-1/+0
| | | | | | | | | | | | | | | | | | Because we test very naively we matched also on def in default... Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * | TO REVERT LATER: disable decimaltest from LegacyDBTestRoeland Jago Douma2019-11-271-3/+3
| | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * | TO REVERT LATER: disable tests in LargeFileHelperGetFileSizeTestRoeland Jago Douma2019-11-271-1/+1
| | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * | Mode to modern phpunitRoeland Jago Douma2019-11-27217-1046/+1094
| | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * | Fix lockprivider testRoeland Jago Douma2019-11-271-2/+8
| | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * | Fix more testsRoeland Jago Douma2019-11-271-2/+2
| | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * | Fix signCoretestsRoeland Jago Douma2019-11-271-5/+5
| | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * | SignApp fixesRoeland Jago Douma2019-11-271-4/+4
| | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * | More fixesRoeland Jago Douma2019-11-273-7/+19
| | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * | More fixesRoeland Jago Douma2019-11-271-2/+6
| | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * | Fix more testsRoeland Jago Douma2019-11-272-5/+7
| | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * | Skip redis if not configuredRoeland Jago Douma2019-11-271-0/+4
| | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * | Make phpunit8 compatibleRoeland Jago Douma2019-11-27386-466/+465
| |/ | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* / Use person icon for personal settingsJulius Härtl2019-11-271-3/+3
|/ | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #18019 from nextcloud/enhancement/password-policy-eventsRoeland Jago Douma2019-11-272-38/+49
|\ | | | | Add typed events for password_policy
| * Add typed events for password_policyChristoph Wurst2019-11-272-38/+49
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Merge pull request #17834 from nextcloud/enh/noid/generic-event-replacement-tk2blizzz2019-11-272-4/+8
|\ \ | |/ |/| Public API's GenericEvent replacement (take 2)
| * Files first to use own GenericEventArthur Schiwon2019-11-262-4/+8
| | | | | | | | | | | | * those are added to 18 only anyway :) Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | Merge pull request #17939 from nextcloud/fix/token-insert-conflict-handlingRoeland Jago Douma2019-11-261-10/+44
|\ \ | | | | | | Handle token insert conflicts
| * | Handle token insert conflictsChristoph Wurst2019-11-261-10/+44
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Env-based SAML uses the "Apache auth" mechanism to log users in. In this code path, we first delete all existin auth tokens from the database, before a new one is inserted. This is problematic for concurrent requests as they might reach the same code at the same time, hence both trying to insert a new row wit the same token (the session ID). This also bubbles up and disables user_saml. As the token might still be OK (both request will insert the same data), we can actually just check if the UIDs of the conflict row is the same as the one we want to insert right now. In that case let's just use the existing entry and carry on. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Merge pull request #17948 from nextcloud/enh/check-if-property-is-boolRoeland Jago Douma2019-11-261-8/+35
|\ \ | |/ |/| Make isXXX available for bool properties only
| * Make isXXX available for bool properties onlyDaniel Kesselberg2019-11-161-8/+35
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | Merge pull request #17896 from nextcloud/fix/noid/consider-create-group-resultblizzz2019-11-251-0/+30
|\ \ | | | | | | take group creation result into consideration
| * | take group creation result into considerationArthur Schiwon2019-11-251-0/+30
| | | | | | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | | Some php-cs fixesRoeland Jago Douma2019-11-22146-190/+174
|/ / | | | | | | | | | | | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Fix the tests after #18029Roeland Jago Douma2019-11-211-2/+1
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Merge pull request #18029 from nextcloud/feature/public-post-login-eventRoeland Jago Douma2019-11-211-2/+2
|\ \ | | | | | | Make the post login event public
| * | Make the post login event publicChristoph Wurst2019-11-201-2/+2
| | | | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | Accept incoming shares in acceptance testsDaniel Calviño Sánchez2019-11-205-18/+128
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Incoming shares are no longer automatically added to the file list of the sharee. Instead, the user now needs to explictly accept the share. Currently shares can be accepted only from the Notifications app, so it must be explicitly cloned before installing Nextcloud if it is not found in the "apps" directory. Note that the development branches are already built, so there is no need to explicitly build the app. With the new sharing behaviour the "share a skeleton file with another user before first login" scenario is no longer valid (as the user will need to log in to accept the share, so at that point the skeleton is already created), so it was removed. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | | Rename "Notification" to "Toast"Daniel Calviño Sánchez2019-11-202-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | Since Nextcloud 17 the proper name for the old built-in notifications is "Toast". Moreover, this will reduce ambiguity when using the "notification" term to refer to elements in the Notifications app. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | | Do not check for updates if we have no internetRoeland Jago Douma2019-11-201-24/+64
|/ / | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Do pagination on the dummy group backendRoeland Jago Douma2019-11-201-1/+2
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Use dummy backend in testRoeland Jago Douma2019-11-181-0/+1
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Merge remote-tracking branch 'origin/master' into filecache-extensionRoeland Jago Douma2019-11-181-3/+12
|\ \
| * | Check getRedirectUri() for queriesRussellAult2019-11-131-3/+12
| |/ | | | | | | | | | | | | | | Resolves Issue #17885 Check getRedirectUri() for queries, and add a '&' instead of a '?' to $redirectUri if it already has them; otherwise, $redirectUri might end up with two '?'. Signed-off-by: RussellAult <russellault@users.noreply.github.com>
* | fix folder deleteRobin Appelman2019-11-131-0/+2
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | dont create empty filecache extended rowsRobin Appelman2019-11-131-1/+8
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | expose filecache extension data in FileInfoRobin Appelman2019-11-131-213/+236
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | store filecache extension fieldsRobin Appelman2019-11-131-0/+61
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add unit tests for "getAllShares()"Daniel Calviño Sánchez2019-10-302-0/+216
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Adjust acceptance tests to new OCA.SidebarJohn Molakvoæ (skjnldsv)2019-10-294-46/+53
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>