summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-02-06 18:12:32 +0100
committerVincent Petry <pvince81@owncloud.com>2014-02-06 18:12:32 +0100
commitbe47e156a5afee8a20f60d278aab45bb84c282c2 (patch)
treeda0432bc2eb4579d6b0a25877dcd23173b760f1e /tests
parent5ab12a8b85855ff01f4a3006a71ada2227d2a05a (diff)
parent0f1c587e6baaa201f01683b6adac8cc907c4f3e3 (diff)
downloadnextcloud-server-be47e156a5afee8a20f60d278aab45bb84c282c2.tar.gz
nextcloud-server-be47e156a5afee8a20f60d278aab45bb84c282c2.zip
Merge pull request #6952 from MartialGeek/add_freebox_support
New user agent added for the Freebox.
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/request.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/lib/request.php b/tests/lib/request.php
index c6401a57144..1d77acc70ae 100644
--- a/tests/lib/request.php
+++ b/tests/lib/request.php
@@ -118,6 +118,21 @@ class Test_Request extends PHPUnit_Framework_TestCase {
),
true
),
+ array(
+ 'Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0',
+ OC_Request::USER_AGENT_FREEBOX,
+ false
+ ),
+ array(
+ 'Mozilla/5.0',
+ OC_Request::USER_AGENT_FREEBOX,
+ true
+ ),
+ array(
+ 'Fake Mozilla/5.0',
+ OC_Request::USER_AGENT_FREEBOX,
+ false
+ ),
);
}
}