Christoph Wurst
1584c9ae9c
Add visibility to all methods and position of static keyword
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 lat temu
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 lat temu
Christoph Wurst
41b5e5923a
Use exactly one empty line after the namespace declaration
For PSR2
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 lat temu
Christoph Wurst
b80ebc9674
Use the short array syntax, everywhere
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 lat temu
Christoph Wurst
2ee65f177e
Use the shorter phpunit syntax for mocked return values
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 lat temu
Roeland Jago Douma
c007ca624f
Make phpunit8 compatible
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
4 lat temu
Roeland Jago Douma
1bd688a9d1
Use dummy backend in test
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
4 lat temu
Morris Jobke
51c55a867d
fix quota tests for external storage
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
7 lat temu
Roeland Jago Douma
dcf8091d69
Fix getMock HelperStorageTest
7 lat temu
Joas Schilling
9a4253ef7c
Fix lib/
8 lat temu
Roeland Jago Douma
1f715289bf
Removed deprecated function OC_User::deleteUser
Replaced with proper OCP calls
8 lat temu
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 lat temu
Morris Jobke
d331e0d4f8
Replace OC_Config in tests with IConfig calls
8 lat temu
Thomas Müller
757aa45db7
Adding more DB groups to test suits
Adding more DB groups to test suits
8 lat temu
Morris Jobke
0d4f0ab871
reduce OC_Preferences, OC_Config and \OCP\Config usage
* files_encryption
* files_versions
* files_trashbin
* tests
* status.php
* core
* server container
9 lat temu
Joas Schilling
6625d5c88f
Correctly restore previous root mount point after testing
9 lat temu
Vincent Petry
da889ff029
Added experimental switch to count external storage data in quota
This includes all mountpoints except the Shared one in
the used space calculation.
Added unit tests for ext storage inclusion in quota calculation
10 lat temu
Vincent Petry
010eef95c0
Fixed total space display when data size exceeds quota
The total space display in the personal page now shows the quota value
instead of used space when used space exceeds the quota (soft quota).
10 lat temu