summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Update karma, use sinon from npmVincent Petry2017-03-231-4/+1
| | | | | | | Update karma library and use sinon JS library provided by karma-jasmine-sinon instead of local file. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix testsRoeland Jago Douma2017-03-221-31/+89
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Cache SCSS dependency file in memcacheRoeland Jago Douma2017-03-221-2/+4
| | | | | | | Since reading a file from disks can be costly. Lets store the dependency json also in memcache. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add the AppContainerRoeland Jago Douma2017-03-221-0/+8
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Don't do a recursive searchJoas Schilling2017-03-221-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #3844 from nextcloud/unshare_eventJoas Schilling2017-03-212-171/+189
|\ | | | | Unshare event
| * Add LegacyHooksRoeland Jago Douma2017-03-172-171/+189
| | | | | | | | | | | | | | Use a helper class to listen to the eventDispatcher calls from the share manager to emit the old \OC_Hooks Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Merge pull request #3955 from nextcloud/downstream-27113Roeland Jago Douma2017-03-212-4/+10
|\ \ | | | | | | Can we get some faster phpunit execution?
| * | [CI] Can we get some faster phpunit execution? (#27113)Thomas Müller2017-03-202-4/+10
| | | | | | | | | | | | | | | | | | | | | | | | * Don't backup globals and static attributes * Unset global variable to remove impact on followup tests Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | | Fix NODB tests etcRoeland Jago Douma2017-03-211-4/+4
| | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | Add DI intergration testsRoeland Jago Douma2017-03-211-0/+136
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Moved some interface definitions to Server.php (more to come) * Build/Query only for existing classes in the AppContainer * Build/Query only for classes of the App in the AppContainer * Offload other stuff to the servercontainer Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | Extend DI testsRoeland Jago Douma2017-03-211-5/+14
| | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | Merge pull request #3530 from nextcloud/scss-variablesLukas Reschke2017-03-203-0/+280
|\ \ \ | | | | | | | | Implement scss variables
| * | | Fix testsJulius Härtl2017-03-201-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * | | Add tests for SCSSCacherJulius Härtl2017-03-203-30/+202
| | | | | | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * | | Add tests for SCSSCacherJulius Haertl2017-03-201-0/+108
| | | | | | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | | Merge pull request #3957 from nextcloud/downstream-27307Christoph Wurst2017-03-201-53/+50
|\ \ \ \ | | | | | | | | | | Follow up to #3949 (app exists on enable)
| * | | | createMockJoas Schilling2017-03-201-24/+8
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * | | | Fix the testJoas Schilling2017-03-201-34/+46
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * | | | Don't use a generic exceptionJoas Schilling2017-03-201-3/+4
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | | | Revert "Add a magic wrapper to allow phpunit4 to run the code again "Roeland Jago Douma2017-03-204-108/+5
| |/ / / |/| | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | | Merge pull request #3939 from nextcloud/downstream-27159Joas Schilling2017-03-201-0/+2
|\ \ \ \ | | | | | | | | | | Fix malformed logging in exception
| * | | | Move error message to log entryLukas Reschke2017-03-201-0/+2
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* | | | | Merge pull request #3929 from nextcloud/downstream-27068Joas Schilling2017-03-201-1/+18
|\ \ \ \ \ | | | | | | | | | | | | cache loadUser if not exists
| * | | | | Add tests for database user backend cachingVincent Petry2017-03-201-1/+18
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add comment, closeCursor in user DB query Invalidate user in cache after successful creation Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | | | | Merge pull request #3884 from nextcloud/downstream-26956Joas Schilling2017-03-203-88/+232
|\ \ \ \ \ | | | | | | | | | | | | Skip null groups in group manager
| * | | | | Fix 5.6 duplicate class importJoas Schilling2017-03-171-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * | | | | Clean up the testJoas Schilling2017-03-171-81/+52
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * | | | | Use DIJoas Schilling2017-03-171-27/+31
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * | | | | Skip null groups in group manager (#26871) (#26956)Vincent Petry2017-03-173-0/+171
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Skip null groups in group manager (#26871) * Skip null groups in group manager * Also skip null groups in group manager's search function * Add more group null checks in sharing code * Add unit tests for null group safety in group manager * Add unit tests for sharing code null group checks * Added tests for null groups handling in sharing code * Ignore moveShare optional repair in mount provider In some cases, data is inconsistent in the oc_share table due to legacy data. The mount provider might attempt to make it consistent but if the target group does not exist any more it cannot work. In such case we simply ignore the exception as it is not critical. Keeping the exception would break user accounts as they would be unable to use their filesystem. * Adjust null group handing + tests * Fix new group manager tests Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | | | | | Merge pull request #3924 from nextcloud/preview_fixesLukas Reschke2017-03-201-1/+5
|\ \ \ \ \ \ | |_|_|/ / / |/| | | | | Do not generate the max preview twice
| * | | | | Fix testsRoeland Jago Douma2017-03-191-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | | | | Merge pull request #3949 from nextcloud/downstream-27307Morris Jobke2017-03-201-4/+21
|\ \ \ \ \ \ | |_|_|_|/ / |/| | | | | Check if app exists before enabling
| * | | | | Improve the test caseMorris Jobke2017-03-201-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
| * | | | | checking if app exists in the FileStream nownoveens2017-03-201-4/+18
| | |_|/ / | |/| | | | | | | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* / | | | test setTagGroups with empty groupidsJörn Friedrich Dreyer2017-03-191-0/+9
|/ / / / | | | | | | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | | | Use SystemConfig instead of AllConfig for DB stuffMorris Jobke2017-03-192-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | * preparation for followup PRs to clean up the DB bootstrapping Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | | | Merge pull request #3927 from nextcloud/minor-fixesMorris Jobke2017-03-192-5/+20
|\ \ \ \ | | | | | | | | | | Namespace and array syntax fixes
| * | | | Namespace and array syntax fixesMorris Jobke2017-03-192-5/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * minor fixes in preparation of a bigger DB and config PR Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | | | | Merge pull request #3906 from nextcloud/shares-circles-2Roeland Jago Douma2017-03-191-1/+1
|\ \ \ \ \ | |_|/ / / |/| | | | Support Circles
| * | | | shares-circlesMaxence Lange2017-03-171-1/+1
| |/ / / | | | | | | | | Signed-off-by: Maxence Lange <maxence@nextcloud.com>
* | | | Merge pull request #3898 from nextcloud/issue-3627-always-suggest-cli-urlLukas Reschke2017-03-182-3/+13
|\ \ \ \ | |/ / / |/| | | Always suggest the overwrite.cli.url
| * | | Always suggest the overwrite.cli.urlJoas Schilling2017-03-172-3/+13
| | | | | | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | | Merge pull request #3892 from nextcloud/downstream-27101Joas Schilling2017-03-171-253/+288
|\ \ \ \ | |/ / / |/| | | Redirect unlink to rmdir
| * | | Cleanup testJoas Schilling2017-03-171-254/+266
| | | | | | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * | | Fix unit testJoas Schilling2017-03-171-2/+1
| | | | | | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * | | Redirect unlink to rmdir (#27101)Vincent Petry2017-03-161-0/+24
| |/ / | | | | | | | | | | | | | | | | | | Many API callers will call unlink even for directories and it can mess up with some wrappers like the encryption wrapper Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | | Merge pull request #3878 from nextcloud/downstream-26303Joas Schilling2017-03-173-7/+5
|\ \ \ | |_|/ |/| | Fixed failing test which was ignoring a required (not null) column
| * | Fixed failing test which was ignoring a required (not null) column (#26303)Philipp Schaffrath2017-03-173-7/+5
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fixed failing test which was ignoring a required (not null) column * restored test to original, catching DriverException which also catches ConstraintViolationException * catch ConstraintViolationException again * removed unnecessary field from this test * clobfield should be nullable * clobfield now is nullable * removed autoincrement since whenever this strategy is enabled, oracle would not throw constraint violation exceptions (needed for setValues), which mysql still does * this field does not auto increment anymore * mark integerfield as primary, since it is not getting marked as such through auto increment anymore, integerfield default always has been 0 instead of null Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Adjust tests to include base-uriLukas Reschke2017-03-162-2/+2
| | | | | | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>