Morris Jobke
e20db42a0c
Tags.php and the old sharing mechanism
The old sharing mechanism isn't working anymore, because it was replaced by Share 2.0. Also it was nowhere used so this removes the code paths and reduces complexity.
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
4 years ago
Joas Schilling
89ed2c37bf
Update share type constant usage
Signed-off-by: Joas Schilling <coding@schilljs.com>
4 years ago
Christoph Wurst
caff1023ea
Format control structures, classes, methods and function
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>
4 years ago
Christoph Wurst
41b5e5923a
Use exactly one empty line after the namespace declaration
For PSR2
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 years ago
Christoph Wurst
85e369cddb
Fix multiline comments
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 years ago
Christoph Wurst
b80ebc9674
Use the short array syntax, everywhere
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 years ago
Christoph Wurst
2ee65f177e
Use the shorter phpunit syntax for mocked return values
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 years ago
Christoph Wurst
23eb0462e5
Use lowercase true, false and null constants
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 years ago
Roeland Jago Douma
c007ca624f
Make phpunit8 compatible
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
4 years ago
Joas Schilling
01b4db62fb
Add dispatcher events to User and Group objects
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Morris Jobke
bc34a7f4e9
Get rid of shareItem
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
6 years ago
Morris Jobke
8366dfa50b
Cleanup usage of shareItem in internal code base
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
6 years ago
Morris Jobke
895b9c2309
Use proper methods for registerBackend
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
6 years ago
Roeland Jago Douma
2f36bbecb8
Fix getMock TagTest
7 years ago
Joas Schilling
320b1c3abf
Fix more failures
8 years ago
Joas Schilling
9a4253ef7c
Fix lib/
8 years ago
Morris Jobke
190cc2bb67
Remove OC_DB::getConnection
8 years ago
Roeland Jago Douma
835911bce5
Removed deprecated private OC_User::createUser
All function calls are replaced with the recommended (which was already
the body of the function).
8 years ago
Thomas Müller
3bb6dcea64
Apply DB group annotation ...
8 years ago
Bernhard Posselt
59bbf27253
remove IDb interface from core class usage
9 years ago
Vincent Petry
9ee37169a6
Return null when requesting tags for null user
The TagManager->load() now returns null if the user is not authenticated
instead of failing with an error.
9 years ago
Vincent Petry
ef8d38ca27
Fix chunked query for tags + unit test
9 years ago
Vincent Petry
745d8706b9
Add user parameter to tag manager
9 years ago
Vincent Petry
cae600722e
Add getTagsForObjects in ITags
Returns the list of tags that are set on the given object ids.
9 years ago
Joas Schilling
ea4c25609d
Replace uniqid calls with $this->getUniqueID so tests pass again on windows
9 years ago
Joas Schilling
2c39aec8cb
Replace deprecated constant with new class constant
9 years ago
Joas Schilling
cb3a598cdb
Make root tests extend the \Test\TestCase
9 years ago
Robin Appelman
0dcb832039
Fix tags unit test
9 years ago
Bernhard Reiter
226d7233e1
In Tags::rename($from, $to), check if there already is a tag named $to.
9 years ago
Bernhard Reiter
7e9baafc53
Add option to include tags for shared items.
9 years ago
Bernhard Reiter
5471189fe6
Implement Tag and TagMapper classes.
Subclassed from \OCP\AppFramework\Db\Entity and Mapper,
respectively. This will allow us to also deal with shared tags.
9 years ago
Bernhard Reiter
3e5d725502
Test addMultiple() with $sync=true.
9 years ago
Bernhard Reiter
a67803fb5d
Test Tags::getFavorites().
9 years ago
Thomas Tanghus
b54b0b2153
Yet another cleanup
10 years ago
Thomas Tanghus
aaed871cee
Add factory class for the server container.
10 years ago
Thomas Tanghus
f022ea752d
Moar tests.
10 years ago
Thomas Tanghus
8fab9eef28
Add another test.
10 years ago
Thomas Tanghus
1bbeb12e2e
Updated method names and added a few more tests.
10 years ago
Thomas Tanghus
45f73feb69
OC_VCategories=>OC\Tags. Public interface + getter in server container
10 years ago
Thomas Tanghus
d27416edf7
Moar tests.
10 years ago
Thomas Tanghus
de81210bec
Add another test.
10 years ago
Thomas Tanghus
314ca843e8
Updated method names and added a few more tests.
10 years ago
Thomas Tanghus
b0762ad3bf
OC_VCategories=>OC\Tags. Public interface + getter in server container
10 years ago