diff options
author | Vincent Petry <pvince81@owncloud.com> | 2016-05-13 11:56:52 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2016-05-13 11:56:52 +0200 |
commit | 9ac763a6407fa4b974fae4a2d60b9408660c3db6 (patch) | |
tree | 4486e415056137afb5bc36421a16eab405e35416 /tests | |
parent | 0b64a0c369b5596ac5a228d7f3067fed49ddcc38 (diff) | |
parent | c28e462583e9ef32266dfc1285b986c4d2673294 (diff) | |
download | nextcloud-server-9ac763a6407fa4b974fae4a2d60b9408660c3db6.tar.gz nextcloud-server-9ac763a6407fa4b974fae4a2d60b9408660c3db6.zip |
Merge pull request #24594 from owncloud/authtoken-name-column-size
Use CLOB for auth token names to allow long user agent strings
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/authentication/token/defaulttokenprovidertest.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/lib/authentication/token/defaulttokenprovidertest.php b/tests/lib/authentication/token/defaulttokenprovidertest.php index 5ee33d0ec11..1902227a4fa 100644 --- a/tests/lib/authentication/token/defaulttokenprovidertest.php +++ b/tests/lib/authentication/token/defaulttokenprovidertest.php @@ -62,7 +62,10 @@ class DefaultTokenProviderTest extends TestCase { $token = 'token'; $uid = 'user'; $password = 'passme'; - $name = 'Some browser'; + $name = 'User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12' + . 'User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12' + . 'User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12' + . 'User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12'; $type = IToken::PERMANENT_TOKEN; $toInsert = new DefaultToken(); |