nextcloud/tests/lib/User
Lukas Reschke ed8a98eaa1
Prevent SQL error message in case of error
`\OC\User\Database::createUser` can throw a PHP exception in case the UID is longer than
permitted in the database. This is against it's PHPDocs and we should cast this to `false`,
so that the regular error handling triggers in.

The easiest way to reproduce is on MySQL:

1. Create user `aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa` in admin panel
2. Create user `aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa` in admin panel again
3. See SQL exception as error message

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2017-08-17 12:08:40 +02:00
..
AvatarUserDummy.php Move tests/ to PSR-4 (#24731) 2016-05-20 15:38:20 +02:00
Backend.php Move tests/ to PSR-4 (#24731) 2016-05-20 15:38:20 +02:00
DatabaseTest.php Add tests for database user backend caching 2017-03-20 02:03:03 -06:00
Dummy.php Move tests/ to PSR-4 (#24731) 2016-05-20 15:38:20 +02:00
ManagerTest.php Prevent SQL error message in case of error 2017-08-17 12:08:40 +02:00
SessionTest.php Fix SessionTest 2017-08-09 16:13:54 +02:00
UserTest.php emit changeUser only if there really was a change (quota, displayname) 2017-06-01 11:34:17 +02:00