[Pkg-owncloud-commits] [php-sabredav] 219/275: Fixed #515 test for master branch.

David Prévot taffit at moszumanska.debian.org
Thu Sep 25 14:56:11 UTC 2014


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

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

commit 507016066d19f1e79dc79d83bc8c4d4527b90a9f
Author: Evert Pot <evert at rooftopsolutions.nl>
Date:   Thu Sep 11 13:44:32 2014 +0100

    Fixed #515 test for master branch.
---
 tests/Sabre/DAV/ServerPreconditionTest.php | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/tests/Sabre/DAV/ServerPreconditionTest.php b/tests/Sabre/DAV/ServerPreconditionTest.php
index 26912ac..7580f53 100644
--- a/tests/Sabre/DAV/ServerPreconditionTest.php
+++ b/tests/Sabre/DAV/ServerPreconditionTest.php
@@ -175,6 +175,9 @@ class ServerPreconditionsTest extends \PHPUnit_Framework_TestCase {
 
     }
 
+    /**
+     * This was a test written for issue #515.
+     */
     public function testNoneMatchCorrectEtagEnsureSapiSent() {
 
         $root = new SimpleCollection('root',array(new ServerPreconditionsNode()));
@@ -189,7 +192,10 @@ class ServerPreconditionsTest extends \PHPUnit_Framework_TestCase {
 
         $this->assertFalse($server->checkPreconditions($httpRequest, $server->httpResponse));
         $this->assertEquals(304, $server->httpResponse->getStatus());
-        $this->assertEquals(['ETag' => '"abc123"'], $server->httpResponse->getHeaders());
+        $this->assertEquals([
+            'ETag' => '"abc123"',
+            'X-Sabre-Version' => Version::VERSION,
+        ], $server->httpResponse->getHeaders());
         $this->assertEquals(1, HTTP\SapiMock::$sent);
 
     }

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