Christoph Wurst
b80ebc9674
Use the short array syntax, everywhere
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 years ago
Christoph Wurst
74936c49ea
Remove unused imports
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 years ago
Christoph Wurst
b81b824da1
Add typed events for the filesystem/scanner
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 years ago
John Molakvoæ (skjnldsv)
5cb11ca642
Fix tests
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
4 years ago
Roeland Jago Douma
c007ca624f
Make phpunit8 compatible
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
4 years ago
Morris Jobke
895b9c2309
Use proper methods for registerBackend
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
7 years ago
Joas Schilling
f37fa6e45c
Move Share backends to PSR-4 instead of using class path (#24941)
8 years ago
Joas Schilling
94ad54ec9b
Move tests/ to PSR-4 (#24731)
* 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
8 years ago
Morris Jobke
90b0831cec
Use TempManager instead of tmpFolder
8 years ago
Morris Jobke
e9c8f82fc5
Replace OC_Config in tests with IConfig calls
8 years ago
Thomas Müller
3bb6dcea64
Apply DB group annotation ...
8 years ago
Robin Appelman
ae71f80f4a
Skip unavailable storages in scanner
8 years ago
Robin Appelman
a95d4c2b22
update tests
8 years ago
Lukas Reschke
36ce254ffd
Move dummy backend to Tests namespace
8 years ago
Robin Appelman
be55a90323
dont use our now non existing hook
9 years ago
Vincent Petry
f8cfc03f36
Replace originalStorage in tests with a proper teardown
The purpose of $originalStorage in unit tests was to remount the old
root.
However that storage itself is already wrapped by storage wrapper, so
remounting it would rewrap the storage several times.
This fix makes use of "loginAsUser()" and "logout()" from the TestCase
class to properly initialize and cleanup the FS as expected.
9 years ago
Joas Schilling
bb540722cd
Use base class to reset the file mapper
9 years ago
Joas Schilling
6625d5c88f
Correctly restore previous root mount point after testing
9 years ago
Robin Appelman
644755df66
Use bigger transactions when doing explicit file system scans
9 years ago
Jörn Friedrich Dreyer
39f2f564a9
use assertSame and assertNotSame for etag checks
10 years ago
Scrutinizer Auto-Fixer
adaee6a5a1
Scrutinizer Auto-Fixes
This patch was automatically generated as part of the following inspection:
https://scrutinizer-ci.com/g/owncloud/core/inspections/cdfecc4e-a37e-4233-8025-f0d7252a8720
Enabled analysis tools:
- PHP Analyzer
- JSHint
- PHP Copy/Paste Detector
- PHP PDepend
10 years ago
Robin Appelman
4113042c8f
remove duplicate test class
10 years ago
Robin Appelman
203d5d01ca
Use storage_mtime when determining if we can reuse cached data while scanning
10 years ago
Robin Appelman
e888bdda30
get rid of failing test that don't cause additional downloads
10 years ago
Robin Appelman
cf9b7e343a
extend test case for etag preservation
10 years ago
Robin Appelman
01ab15a2b0
reuse etags when doing a background scan
10 years ago