[Pkg-owncloud-commits] [php-sabredav] 68/80: Tests for #686

David Prévot taffit at moszumanska.debian.org
Thu Jan 7 02:56:39 UTC 2016


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository php-sabredav.

commit 101d17c3b75d615ec61a7e67733a95fb54c14d90
Author: Evert Pot <me at evertpot.com>
Date:   Tue Jan 5 01:35:16 2016 -0500

    Tests for #686
---
 .../DAVACL/PrincipalBackend/AbstractPDOTest.php      | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/tests/Sabre/DAVACL/PrincipalBackend/AbstractPDOTest.php b/tests/Sabre/DAVACL/PrincipalBackend/AbstractPDOTest.php
index 5aab1b7..3814ebc 100644
--- a/tests/Sabre/DAVACL/PrincipalBackend/AbstractPDOTest.php
+++ b/tests/Sabre/DAVACL/PrincipalBackend/AbstractPDOTest.php
@@ -175,4 +175,24 @@ abstract class AbstractPDOTest extends \PHPUnit_Framework_TestCase {
 
     }
 
+    function testFindByUriUnknownScheme() {
+
+        $pdo = $this->getPDO();
+        $backend = new PDO($pdo);
+        $this->assertNull($backend->findByUri('http://foo', 'principals'));
+
+    }
+
+
+    function testFindByUri() {
+
+        $pdo = $this->getPDO();
+        $backend = new PDO($pdo);
+        $this->assertEquals(
+            'principals/user',
+            $backend->findByUri('mailto:user at example.org', 'principals')
+        );
+
+    }
+
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabredav.git



More information about the Pkg-owncloud-commits mailing list