Christoph Wurst
1584c9ae9c
Add visibility to all methods and position of static keyword
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
hace 4 años
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>
hace 4 años
Christoph Wurst
41b5e5923a
Use exactly one empty line after the namespace declaration
For PSR2
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
hace 4 años
Christoph Wurst
b80ebc9674
Use the short array syntax, everywhere
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
hace 4 años
Christoph Wurst
2ee65f177e
Use the shorter phpunit syntax for mocked return values
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
hace 4 años
Roeland Jago Douma
c007ca624f
Make phpunit8 compatible
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
hace 4 años
Roeland Jago Douma
1bd688a9d1
Use dummy backend in test
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
hace 4 años
Morris Jobke
51c55a867d
fix quota tests for external storage
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
hace 7 años
Roeland Jago Douma
dcf8091d69
Fix getMock HelperStorageTest
hace 7 años
Joas Schilling
9a4253ef7c
Fix lib/
hace 8 años
Roeland Jago Douma
1f715289bf
Removed deprecated function OC_User::deleteUser
Replaced with proper OCP calls
hace 8 años
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).
hace 8 años
Morris Jobke
d331e0d4f8
Replace OC_Config in tests with IConfig calls
hace 8 años
Thomas Müller
757aa45db7
Adding more DB groups to test suits
Adding more DB groups to test suits
hace 8 años
Morris Jobke
0d4f0ab871
reduce OC_Preferences, OC_Config and \OCP\Config usage
* files_encryption
* files_versions
* files_trashbin
* tests
* status.php
* core
* server container
hace 9 años
Joas Schilling
6625d5c88f
Correctly restore previous root mount point after testing
hace 9 años
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
hace 10 años
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).
hace 10 años