summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMartial Saunois <saunois.martial@gmail.com>2014-01-28 21:08:27 +0100
committerMartial Saunois <saunois.martial@gmail.com>2014-01-28 21:08:27 +0100
commit8507efc4273aa87e32090bcabb31b7bc5b98ec35 (patch)
treeb8081e28230e5d35217b48fe19583d2f299c2e95 /tests
parentc2ed8d5aa111ac537cf37bbf0d60fd503a62c24a (diff)
downloadnextcloud-server-8507efc4273aa87e32090bcabb31b7bc5b98ec35.tar.gz
nextcloud-server-8507efc4273aa87e32090bcabb31b7bc5b98ec35.zip
Unit tests added for the new Freebox user agent.
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/request.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/lib/request.php b/tests/lib/request.php
index c6401a57144..3cb58674d3e 100644
--- a/tests/lib/request.php
+++ b/tests/lib/request.php
@@ -118,6 +118,16 @@ 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
+ ),
);
}
}