]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix dav unit tests 7468/head
authorBjoern Schiessle <bjoern@schiessle.org>
Tue, 12 Dec 2017 12:55:32 +0000 (13:55 +0100)
committerBjoern Schiessle <bjoern@schiessle.org>
Tue, 12 Dec 2017 13:38:49 +0000 (14:38 +0100)
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
apps/dav/tests/unit/Connector/Sabre/AuthTest.php

index dfcb79397997cf966672c3b83be8ba940adbfb0d..0bb207a814b87a8a36f3f1abff1639a6a04c2525 100644 (file)
@@ -301,7 +301,7 @@ class AuthTest extends TestCase {
                        ->method('isUserAgent')
                        ->with([
                                '/^Mozilla\/5\.0 \([A-Za-z ]+\) (mirall|csyncoC)\/.*$/',
-                               '/^Mozilla\/5\.0 \(Android\) ownCloud\-android.*$/',
+                               '/^Mozilla\/5\.0 \(Android\) (ownCloud|Nextcloud)\-android.*$/',
                                '/^Mozilla\/5\.0 \(iOS\) (ownCloud|Nextcloud)\-iOS.*$/',
                        ])
                        ->willReturn(false);
@@ -405,7 +405,7 @@ class AuthTest extends TestCase {
                        ->method('isUserAgent')
                        ->with([
                                '/^Mozilla\/5\.0 \([A-Za-z ]+\) (mirall|csyncoC)\/.*$/',
-                               '/^Mozilla\/5\.0 \(Android\) ownCloud\-android.*$/',
+                               '/^Mozilla\/5\.0 \(Android\) (ownCloud|Nextcloud)\-android.*$/',
                                '/^Mozilla\/5\.0 \(iOS\) (ownCloud|Nextcloud)\-iOS.*$/',
                        ])
                        ->willReturn(false);
@@ -451,7 +451,7 @@ class AuthTest extends TestCase {
                        ->method('isUserAgent')
                        ->with([
                                '/^Mozilla\/5\.0 \([A-Za-z ]+\) (mirall|csyncoC)\/.*$/',
-                               '/^Mozilla\/5\.0 \(Android\) ownCloud\-android.*$/',
+                               '/^Mozilla\/5\.0 \(Android\) (ownCloud|Nextcloud)\-android.*$/',
                                '/^Mozilla\/5\.0 \(iOS\) (ownCloud|Nextcloud)\-iOS.*$/',
                        ])
                        ->willReturn(true);