summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/tests
Commit message (Collapse)AuthorAgeFilesLines
* Fix risky tests without assertionsJoas Schilling2018-01-254-5/+10
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Remove IAppConfig::setValueRoeland Jago Douma2018-01-171-11/+11
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Cleanup OC_User and OCP\UserMorris Jobke2018-01-161-2/+4
| | | | | | * mainly removes deprecated methods and old static code Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix constructor spy in unit test with Sinon 4.1.3Daniel Calviño Sánchez2017-12-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | When a constructor is spied using Sinon it is wrapped by a proxy function, which calls the original constructor when invoked. When "new Foo()" is executed a "Foo" object is created, "Foo" is invoked with the object as "this", and the object is returned as the result of the whole "new" expression. Before Sinon 4.1.3 the proxy called the original constructor directly using the "thisValue" of the spied call; "thisValue" was the object created by the "new" operator that called the proxy. The proxy assigned "thisValue" to "returnValue", so it was also the value returned by the proxy and, in turn, the value returned by the whole "new" expression. Since Sinon 4.1.3 (see pull request 1626) the proxy calls the original constructor using "new" instead of directly. The "thisValue" created by the outermost "new" (the one that called the proxy) is no longer used by the original constructor; the internal "new" creates a new object, which is the one passed to the original constructor and returned by the internal "new" expression. This object is also the value returned by the proxy ("returnValue") and, in turn, the value returned by the whole outermost "new" expression. Thus, now "returnValue" should be used instead of "thisValue" to get the object created by the spied constructor. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* rip out obsolete recipientsDisplayNameArthur Schiwon2017-11-232-57/+4
| | | | | | also needs tests adjustements, and this also brings in natural sorting Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* adjust tests and apply sortingArthur Schiwon2017-11-231-9/+23
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Use the correct root for shared jail when the source storage is also a jailRobin Appelman2017-11-101-0/+39
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Change @georgehrke's emailMorris Jobke2017-11-064-1/+4
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headersMorris Jobke2017-11-0621-11/+94
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #6094 from nextcloud/sharedby-avatarJan-Christoph Borchardt2017-11-021-6/+6
|\ | | | | Show avatar instead of username for shared files
| * adjust more js unit testsArthur Schiwon2017-11-021-6/+6
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | Merge branch 'master' into autocomplete-guiArthur Schiwon2017-11-018-96/+109
|\|
| * Use ::class in test mocks of encryption appMorris Jobke2017-10-262-17/+19
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
| * Use ::class in test mocks of dav appMorris Jobke2017-10-262-8/+9
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
| * Use ::class in test mocksMorris Jobke2017-10-246-70/+80
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
| * Use appmanager instead of OC_App for check for enabled appMorris Jobke2017-10-231-1/+1
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | fix sharerecipientssorter testsArthur Schiwon2017-10-271-11/+49
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | ensure that sorting is stableArthur Schiwon2017-10-221-5/+5
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | AutoCompletion backendArthur Schiwon2017-10-221-0/+220
|/ | | | | | | | | | * introduce a Controller for requests * introduce result sorting mechanism * extend Comments to retrieve commentors (actors) in a tree * add commenters sorter * add share recipients sorter Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Merge pull request #6328 from nextcloud/split-sharees-api-logicblizzz2017-10-041-1545/+52
|\ | | | | Splits off the logic from sharees endpoint thus making it available from within Nc/via PHP.
| * shareeAPIController unit test clean up and last fixesArthur Schiwon2017-09-261-57/+21
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * remove unused methodArthur Schiwon2017-09-261-21/+0
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * move splitUserRemote unit testsArthur Schiwon2017-09-261-72/+0
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * adapt unit test for ensuring exceptionArthur Schiwon2017-09-261-2/+2
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * split off former searchSharee unit testArthur Schiwon2017-09-261-176/+0
| | | | | | | | | | | | also moves registering default plugins to Server for proper unit testing Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * adjust ShareeAPIController invalid-input search unit testArthur Schiwon2017-09-261-16/+15
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * adjust ShareeAPIController search testArthur Schiwon2017-09-261-31/+18
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * split off getEmail testsArthur Schiwon2017-09-261-244/+0
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * split off getRemote unit testsArthur Schiwon2017-09-261-220/+0
| | | | | | | | | | | | adds two small fixes → they actually work \o/ Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * split off getGroups unit testsArthur Schiwon2017-09-261-392/+0
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * split off getUsers unit testsArthur Schiwon2017-09-261-318/+0
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | Fix testsRoeland Jago Douma2017-09-251-1/+2
|/ | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix commentMorris Jobke2017-09-211-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update to new test caseRoeland Jago Douma2017-08-161-7/+17
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Cleanup unused methodsMorris Jobke2017-08-152-3/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #6123 from nextcloud/cleanup-shareItemMorris Jobke2017-08-154-8/+8
|\ | | | | Cleanup usage of shareItem in internal code base
| * Cleanup usage of shareItem in internal code baseMorris Jobke2017-08-154-8/+8
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Use proper methods for registerBackendMorris Jobke2017-08-151-1/+1
|/ | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Cleanup unused methodsMorris Jobke2017-08-151-63/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add unit testsRoeland Jago Douma2017-08-102-0/+414
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix files_sharing CacheTestsRoeland Jago Douma2017-08-091-2/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Some app fixes of phpstorm inspectionsRoeland Jago Douma2017-07-249-21/+17
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* update sharing test to new master key defaultBjoern Schiessle2017-07-061-0/+2
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Improve wording of various error messagesJan-Christoph Borchardt2017-06-211-1/+1
| | | | Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
* Add unit testJoas Schilling2017-06-141-0/+15
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Move the file sharing app to migrationJoas Schilling2017-05-122-188/+124
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix share indicator handlingVincent Petry2017-04-261-0/+78
| | | | | Properly update the fileInfoModel with the updated share types, which also updates the file list row indicator properly
* Merge pull request #4406 from nextcloud/fix-unit-test-problemsRoeland Jago Douma2017-04-211-3/+4
|\ | | | | Fix unit test problems
| * Don't use deprecated getMock() anymoreJoas Schilling2017-04-201-3/+4
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #4412 from individual-it/masterMorris Jobke2017-04-201-1/+0
|\ \ | |/ |/| deleted forgotten code in test