summaryrefslogtreecommitdiffstats
path: root/tests/lib/Share
Commit message (Collapse)AuthorAgeFilesLines
* Cleanup tags and Share componentCarl Schwan2022-09-291-73/+93
| | | | | | | | | - Port to LoggerInterface - Use IDBConnection and IQueryBuilder instead of raw SQL and OC_DB - Use IEventListener instead of hooks - Remove the now unused OC_DB and OC_DB_StatementWrapper legacy utils Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Remove test for removed class SearchResultSorterCôme Chilliet2022-04-281-42/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Re-use fetched dependencies in lib/base.phpMorris Jobke2021-01-201-1/+1
| | | | | | | | Reduces calls to DI container by reusing already fetched dependencies. For status.php it went from 355 to 344. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Replace static call to Share::unshare with ShareManager->deleteShare in testsMorris Jobke2020-11-301-73/+0
| | | | | | And then cleanup all the code that is dead then... Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update share type constant usageJoas Schilling2020-06-241-10/+10
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add visibility to all constantsChristoph Wurst2020-04-101-3/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add visibility to all methods and position of static keywordChristoph Wurst2020-04-101-5/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add visibility to all properties and move static keywordChristoph Wurst2020-04-101-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-103-7/+0
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use elseif instead of else ifChristoph Wurst2020-04-101-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-091-0/+1
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix (array) indent style to always use one tabChristoph Wurst2020-04-091-13/+13
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix multiline commentsChristoph Wurst2020-04-084-72/+72
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #20170 from nextcloud/techdebt/remove-unused-importsChristoph Wurst2020-03-271-1/+0
|\ | | | | Remove unused imports
| * Remove unused importsChristoph Wurst2020-03-251-1/+0
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use the short array syntax, everywhereChristoph Wurst2020-03-264-101/+101
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Mode to modern phpunitRoeland Jago Douma2019-11-271-1/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make phpunit8 compatibleRoeland Jago Douma2019-11-271-2/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Remove unused OC\Share\Share::checkPasswordProtectedShareMorris Jobke2019-07-291-29/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Deprecate legacy share code and cleanup some unused methodsMorris Jobke2019-04-181-14/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Get rid of shareItemMorris Jobke2018-05-231-355/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove deprecated HTTPHelperRoeland Jago Douma2018-03-131-82/+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>
* Remove IAppConfig::setValueRoeland Jago Douma2018-01-171-2/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Remove IAppConfig::getValueRoeland Jago Douma2018-01-171-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Cleanup unused methodsMorris Jobke2017-08-152-14/+14
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #6123 from nextcloud/cleanup-shareItemMorris Jobke2017-08-151-20/+20
|\ | | | | Cleanup usage of shareItem in internal code base
| * Cleanup usage of shareItem in internal code baseMorris Jobke2017-08-151-20/+20
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Merge pull request #6121 from nextcloud/cleanup-registerBackendMorris Jobke2017-08-151-1/+1
|\ \ | | | | | | Use proper methods for registerBackend
| * | Use proper methods for registerBackendMorris Jobke2017-08-151-1/+1
| |/ | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* / Use proper methods for checkPasswordProtectedShareMorris Jobke2017-08-151-1/+1
|/ | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Cleanup unused methodsMorris Jobke2017-08-151-880/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix last failures with oracleJoas Schilling2017-08-021-2/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Kill dead codeJoas Schilling2017-04-201-125/+0
| | | | | | > No tests found in class "Test\Share\MailNotificationsTest". Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #3614 from nextcloud/discover-federatedsharing-endpointsBjörn Schießle2017-04-121-6/+6
|\ | | | | Discover federatedsharing endpoints
| * remove discovery manager in favour of the OCSDiscoveryServiceBjoern Schiessle2017-04-111-6/+6
| | | | | | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* | Removes unused code for link share emailsMorris Jobke2017-04-111-124/+0
|/ | | | | | | * now handled by sharebymail app * see https://github.com/nextcloud/server/pull/657 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Cleanup OC_Group usage a bitRoeland Jago Douma2016-11-041-206/+220
| | | | | | This is deprecated internal stuff. Should not be used anymore. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Adjust tests and DI for Share.phpLukas Reschke2016-11-021-0/+28
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Remove internal share mail functionRoeland Jago Douma2016-10-261-48/+0
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make sure all tests use the TestCase method to overwrite servicesJoas Schilling2016-10-201-14/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix getMock ShareRoeland Jago Douma2016-09-071-3/+6
|
* Fix for #23066 (#24689)Torben Dannhauer2016-05-311-1/+5
|
* Move tests/ to PSR-4 (#24731)Joas Schilling2016-05-205-0/+2244
* Move a-b to PSR-4 * Move c-d to PSR-4 * Move e+g to PSR-4 * Move h-l to PSR-4 * Move m-r to PSR-4 * Move s-u to PSR-4 * Move files/ to PSR-4 * Move remaining tests to PSR-4 * Remove Test\ from old autoloader