aboutsummaryrefslogtreecommitdiffstats
path: root/apps/federatedfilesharing/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix DI for federated file sharing controllerMorris Jobke2018-04-231-2/+10
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Do not use \OCP\DB anymoreRoeland Jago Douma2018-03-261-11/+19
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Remove deprecated HTTPHelperRoeland Jago Douma2018-03-131-32/+0
| | | | | | | | * Remove the HTTP Helper * Remove from Server Containter * Removed legacy share tests that use it Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix federatedshareprovidertestRoeland Jago Douma2018-01-161-0/+18
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix testsRoeland Jago Douma2018-01-141-2/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update license headersMorris Jobke2017-11-068-0/+16
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use ::class in test mocks of encryption appMorris Jobke2017-10-262-3/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use ::class in test mocks of dav appMorris Jobke2017-10-262-2/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use ::class in test mocksMorris Jobke2017-10-244-24/+26
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix PHPUnit warningsLukas Reschke2017-08-181-3/+3
| | | | | | | | | | | | | | | | | | ``` 1) OCA\FederatedFileSharing\Tests\Settings\AdminTest::testGetForm with data set #0 (true) PHPUnit_Framework_TestCase::getMock() is deprecated, use PHPUnit_Framework_TestCase::createMock() or PHPUnit_Framework_TestCase::getMockBuilder() instead 2) OCA\FederatedFileSharing\Tests\Settings\AdminTest::testGetForm with data set #1 (false) PHPUnit_Framework_TestCase::getMock() is deprecated, use PHPUnit_Framework_TestCase::createMock() or PHPUnit_Framework_TestCase::getMockBuilder() instead 3) OCA\FederatedFileSharing\Tests\Settings\AdminTest::testGetSection PHPUnit_Framework_TestCase::getMock() is deprecated, use PHPUnit_Framework_TestCase::createMock() or PHPUnit_Framework_TestCase::getMockBuilder() instead 4) OCA\FederatedFileSharing\Tests\Settings\AdminTest::testGetPriority PHPUnit_Framework_TestCase::getMock() is deprecated, use PHPUnit_Framework_TestCase::createMock() or PHPUnit_Framework_TestCase::getMockBuilder() instead ``` Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Use proper methods for registerBackendMorris Jobke2017-08-151-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* add new config switched for the global scale architectureBjoern Schiessle2017-05-292-21/+72
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Add the column so we keep the value from before the updateJoas Schilling2017-05-181-1/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix sinon.stub deprecation warningsChristoph Wurst2017-04-241-2/+4
| | | | | | | | | | Calls to `sinon.stub(obj, 'meth', fn)` are deprecated and therefore replaced by `sinon.stub(obj, 'meth).callsFake(fn)` as instructed by the deprecation warning. This makes the js unit testing output readable again. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Adjust docs and make !$currentAccess simplerJoas Schilling2017-04-131-1/+10
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix federated file sharingJoas Schilling2017-04-131-4/+23
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add mail element to access listRoeland Jago Douma2017-04-131-0/+28
| | | | | | | | * Each provider just returns what they have so adding an element won't require changing everything * Added tests Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Do proper DIRoeland Jago Douma2017-04-111-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* remove discovery manager in favour of the OCSDiscoveryServiceBjoern Schiessle2017-04-113-229/+7
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Merge pull request #4250 from nextcloud/disable-lookupserver-uploadBjörn Schießle2017-04-102-0/+37
|\ | | | | allow admin to disable lookupserver upload
| * allow to disable upload to lookup server, by default it is enabledBjoern Schiessle2017-04-072-0/+37
| | | | | | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* | update unit testsBjoern Schiessle2017-04-071-2/+3
|/ | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Remove legacy class OC_Group and OC_UserMorris Jobke2017-03-091-6/+12
| | | | | | * basically a straight replacement of the wrapped code at the calling code parts Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Cleanup not used legacy classesMorris Jobke2017-03-031-1/+2
| | | | | | | * Person was removed via #2170 * other lcasses/interfaces are not used at all Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* remove test for removed codeRobin Appelman2017-02-081-22/+0
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add a single public api for resolving a cloud id to a user and remote and backRobin Appelman2017-02-084-6/+37
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add config switchLukas Reschke2016-11-211-0/+5
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* catch all exception and return a user friendly exception messageBjoern Schiessle2016-11-021-4/+4
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* use https by default if no protocol is given. Only use unsecure connection ↵Bjoern Schiessle2016-11-022-6/+23
| | | | | | if it is explicitely given Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Add defaultShareProvider & federatedshareprovider testsRoeland Jago Douma2016-11-011-0/+45
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Move OC\Files\Storage\Shared to the right namespaceJoas Schilling2016-10-201-1/+1
|
* Mock HTTPClientServiceLukas Reschke2016-09-291-2/+21
| | | | | | | | These tests were not using any kind of mocks at all! This made the test execution time took 2 minutes instead of now less than 1 second… (because multiple HTTP requests were queued and timed-out then…) See https://blackfire.io/profiles/compare/6d2611f2-ad08-47b6-973b-2b5f9c8b96d2/graph for reference Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Fix some more sniffsJoas Schilling2016-09-121-1/+0
|
* Fix deprecated usages of getMock in federatedfilesharingRoeland Jago Douma2016-08-315-27/+35
|
* Move federated sharing routes to the federatedfilesharingappRoeland Jago Douma2016-08-281-20/+20
| | | | | | | | * Move routes to app * Move routes over to the AppFramework * Fix tests There is plenty of stuff to fix properly here. But out of scope for now.
* HTTPHelper is deprecatedRoeland Jago Douma2016-08-241-1/+1
| | | | Use the IClientService instead
* Use MockBuilder instead of createMockLukas Reschke2016-08-151-1/+1
| | | | CI uses an older PHPUnit
* Add unit testsLukas Reschke2016-08-151-0/+84
|
* Update with robinJoas Schilling2016-07-212-2/+2
|
* Fix apps/Joas Schilling2016-07-218-13/+23
|
* don't convert link share to federated share if outgoing federated shares are ↵Bjoern Schiessle2016-07-141-11/+25
| | | | forbidden
* rename SaveToNextcloudController to MountPublicLinkControllerBjoern Schiessle2016-07-141-10/+9
|
* adjust copyright noticesBjoern Schiessle2016-07-141-0/+2
|
* move some stuff over to the federatedfilesharing appBjoern Schiessle2016-07-142-6/+269
|
* s/ownCloud/NextcloudBjoern Schiessle2016-07-141-8/+8
|
* continue to accept the URL of the remote server instead of the federated ↵Bjoern Schiessle2016-07-141-5/+11
| | | | cloud id
* add unit testsBjörn Schießle2016-07-141-0/+161
|
* Handle exceptions thrown while trying to notify remote server of a fed shareRobin Appelman2016-06-271-4/+56
|
* Increase fed share timeout from 3 to 10 + unit testsVincent Petry2016-06-221-5/+20
|
* Update license headersLukas Reschke2016-05-267-16/+11
|