Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBjoern Schiessle <bjoern@schiessle.org>2017-12-12 14:16:01 +0300
committerBjoern Schiessle <bjoern@schiessle.org>2017-12-12 16:38:36 +0300
commit003c709d25e17e76f1c4a8c0268b360ca803f245 (patch)
treec10fa22709c8dadaa703417ea0b367308747122e /tests
parentf44d5bde5604eab628a4194fb2d111aa84ca2082 (diff)
allow 'Nextcloud' in the user agent string of Android
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/AppFramework/Http/RequestTest.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/lib/AppFramework/Http/RequestTest.php b/tests/lib/AppFramework/Http/RequestTest.php
index f80bffcb480..40a9193dc92 100644
--- a/tests/lib/AppFramework/Http/RequestTest.php
+++ b/tests/lib/AppFramework/Http/RequestTest.php
@@ -859,6 +859,20 @@ class RequestTest extends \Test\TestCase {
],
false,
],
+ [
+ 'Mozilla/5.0 (Android) ownCloud-android/2.0.0',
+ [
+ Request::USER_AGENT_CLIENT_ANDROID
+ ],
+ true,
+ ],
+ [
+ 'Mozilla/5.0 (Android) Nextcloud-android/2.0.0',
+ [
+ Request::USER_AGENT_CLIENT_ANDROID
+ ],
+ true,
+ ],
];
}