diff options
author | Christoph Wurst <christoph@owncloud.com> | 2016-05-12 11:19:17 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@owncloud.com> | 2016-05-12 11:19:17 +0200 |
commit | c28e462583e9ef32266dfc1285b986c4d2673294 (patch) | |
tree | 62330c333904504c488350313404e7c5e080d37a /tests/lib | |
parent | 1def89b2c56e372a2d01e1c208ffe97cd7756a45 (diff) | |
download | nextcloud-server-c28e462583e9ef32266dfc1285b986c4d2673294.tar.gz nextcloud-server-c28e462583e9ef32266dfc1285b986c4d2673294.zip |
Use CLOB for auth token names to allow long user agent strings
Diffstat (limited to 'tests/lib')
-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(); |