[Pkg-owncloud-commits] [php-sabredav] 18/64: Update tests.

David Prévot taffit at moszumanska.debian.org
Thu Dec 11 15:13:23 UTC 2014


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

taffit pushed a commit to tag 2.2.0alpha1
in repository php-sabredav.

commit cf081401e4d0e2f37a2edae6f5dce6ce071cb172
Author: Ivan Enderlin <ivan.enderlin at hoa-project.net>
Date:   Wed Nov 19 14:59:15 2014 +0100

    Update tests.
---
 tests/Sabre/DAV/Browser/GuessContentTypeTest.php | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/tests/Sabre/DAV/Browser/GuessContentTypeTest.php b/tests/Sabre/DAV/Browser/GuessContentTypeTest.php
index d3a5c64..157c217 100644
--- a/tests/Sabre/DAV/Browser/GuessContentTypeTest.php
+++ b/tests/Sabre/DAV/Browser/GuessContentTypeTest.php
@@ -62,8 +62,9 @@ class GuessContentTypeTest extends DAV\AbstractServer {
         );
         $result = $this->server->getPropertiesForPath('/somefile.hoi',$properties);
         $this->assertArrayHasKey(0,$result);
-        $this->assertArrayHasKey(404,$result[0]);
-        $this->assertArrayHasKey('{DAV:}getcontenttype',$result[0][404]);
+        $this->assertArrayHasKey(200,$result[0]);
+        $this->assertArrayHasKey('{DAV:}getcontenttype',$result[0][200]);
+        $this->assertEquals('application/octet-stream',$result[0][200]['{DAV:}getcontenttype']);
 
     }
 }

-- 
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