Joas Schilling
aaf2be4c3d
Use argument instead of value
9 years ago
Roeland Jago Douma
a3fa0d00c3
Cleanup ManagerTest
* Fix deprecated getMock call
* No longer requires DB
9 years ago
Joas Schilling
4656b79c8e
FIx my email
9 years ago
Joas Schilling
dcacdde1ea
Add tests for set/get/delete/list
9 years ago
Joas Schilling
f574a9d44f
Make sure the exception is catched
9 years ago
Joas Schilling
01899b8cf1
Add tests for checkInput()
9 years ago
Roeland Jago Douma
927be847b9
RootTest does not require DB
* Removed from DB group
* Also mock the manager
* Fixed deprecated getMock warnings
9 years ago
Robin Appelman
b288c6796a
fix test
9 years ago
Roeland Jago Douma
f2d091a963
Fix failing tests after db split
9 years ago
Roeland Jago Douma
8d739f308b
Some UtilTests require DB
In the current setup there is no DI so no way to mock them.
9 years ago
Roeland Jago Douma
5b6f5f1a07
LegacyGroupTest need DB
Those old tests make it impossible in the current state to abstract
away.
9 years ago
Roeland Jago Douma
4ebf001b2e
Improve ManagerTest
* No DB required
* Fixed phpunit 5.4 warnings
9 years ago
Roeland Jago Douma
31018adab3
Improve GroupTest
* No longer require DB
9 years ago
Bjoern Schiessle
7c64e1973f
add test for needsRebundling() check
9 years ago
Roeland Jago Douma
3b4535c3be
Improve NodeTest
* Do not use DB
* Fix phpunit-5.4 warnigns
* Moved commong stuff to setup
9 years ago
Joas Schilling
6ea77abb38
Fix some more tests
9 years ago
Roeland Jago Douma
937c9519d6
Mock logger
9 years ago
Roeland Jago Douma
2fa9e67294
Fix phpunit-5.4 wargning
* getMock is deprecated.
* \PDOStatement mocking fails hard on phpunit 4.8
9 years ago
Roeland Jago Douma
58dd278b4e
Correction is no longer required in php7
9 years ago
Roeland Jago Douma
c91aebc437
Fix phpunit Trait warning
9 years ago
Roeland Jago Douma
3a60626b77
Improve FileTest
* No longer requires DB
* Fixed phpunit 5.4 warnings
* Moved common stuff to Setup phase
9 years ago
Morris Jobke
c2d88a08b7
Remove unneeded checks if it runs on a Windows machine
* the setup check is still there
9 years ago
Morris Jobke
2791b8f00d
Revert "occ web executor ( #24957 )"
This reverts commit 854352d9a0
.
9 years ago
Johannes Ernst
66a134e69e
Disallow certain malformed domain names even if they match the trusted domain expression
Stricter checking for valid domain names
9 years ago
Johannes Ernst
2b4ceae620
Trusted domain wildcard checking made shorter, supporting multiple *
Added test cases
9 years ago
Vincent Petry
d769e718a5
Set content type when downloading log file to force download in some browsers ( #25382 )
9 years ago
Thomas Müller
d2d99a91a0
fix swift primary object store test ( #25281 )
* Wait for socket to be open
* Fix call on null
* Allow DB access for MountProviderTest
Makes unit tests pass when using object store, since their FS access is
actually oc_filecache DB access. It is currently not possible to mock
or bypass the logic from "SharedMount::verifyMountPoint()" triggered by
this test.
9 years ago
Thomas Pulzer
90b7f74da7
Changed name of default logfile from owncloud.log to nextcloud.log.
9 years ago
Lukas Reschke
700a57d8b6
Set content-type to "application/octet-stream"
Some browsers such as Firefox on Microsoft Windows otherwise do offer to open the file directly which is kinda silly.
9 years ago
Morris Jobke
01829e8d7c
mysql only works with 3 byte UTF-8
9 years ago
Thomas Müller
b55ab6d22a
Various database migration fixes ( #25209 )
* String columns with a length higher then 4000 are converted into a CLOB columns automagically - we have to respect this when migrating
* Adding schema migration tests to prevent unnecessary and non-sense migration steps
Fix Oracle autoincrement and unsigned handling
* Fix sqlite integer type for autoincrement
* Use lower case table names - fixes pg
* Fix postgres with default -1 - this only affect pg 9.4 servers - 9.5 seems to work fine
9 years ago
Christoph Wurst
c9a2790893
prevent users from deleting their own session token
9 years ago
Christoph Wurst
1710de8afb
Login hooks ( #25260 )
* fix login hooks
* adjust user session tests
* fix login return value of successful token logins
* trigger preLogin hook earlier; extract method 'loginWithPassword'
* call postLogin hook earlier; add PHPDoc
9 years ago
Bjoern Schiessle
2a990a0db5
verify user password on change
9 years ago
Bjoern Schiessle
d4989c8037
remove old hook, no longer needed
9 years ago
Bjoern Schiessle
630e4b1b46
check password for link shares
9 years ago
Christoph Wurst
89198e62e8
check login name when authenticating with client token
9 years ago
Vincent Petry
0ad065cb8d
Repair step to adjust link share delete permissions
9 years ago
Vincent Petry
955635c7aa
Add explicit delete permission to link shares
Link shares always allowed deletion, however internally the permissions
were stored as 7 which lacked delete permissions. This created an
inconsistency in the Webdav permissions.
This fix makes sure we include delete permissions in the share
permissions, which now become 15.
In case a client is still passing 7 for legacy reasons, it gets
converted automatically to 15.
9 years ago
VicDeo
854352d9a0
occ web executor ( #24957 )
* Initial web executor
* Fix PHPDoc
Fix broken integration test
OccControllerTests do not require database access - moch them all!
Kill unused sprintf
9 years ago
Christoph Wurst
b805908dca
update session token password on user password change
9 years ago
Morris Jobke
62e6de5df3
fix unit tests
9 years ago
Christoph Wurst
56199eba37
fix unit test warning/errors
9 years ago
Christoph Wurst
fb36fd495b
fix DefaultTokenMapperTest
9 years ago
Christoph Wurst
5c68084823
fix default token provider tests
9 years ago
Christoph Wurst
8ef5431e7a
fix user session tests
9 years ago
Christoph Wurst
c4149c59c2
use token last_activity instead of session value
9 years ago
Christoph Wurst
82b50d126c
add PasswordLoginForbiddenException
9 years ago
Christoph Wurst
3521f974db
assert app is loaded in unit tests
9 years ago
Christoph Wurst
a40d64ff7f
load 2FA provider apps before querying classes
9 years ago