[Pkg-owncloud-commits] [php-sabredav] 33/33: Added tests for new options response header

David Prévot taffit at moszumanska.debian.org
Sat Nov 30 15:43:57 UTC 2013


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

taffit pushed a commit to tag version-1.0.10
in repository php-sabredav.

commit d11f2470b055ff92079533a6ba7d5865d7c2741a
Author: Evert Pot <evert at rooftopsolutions.nl>
Date:   Mon Mar 22 23:18:00 2010 +0900

    Added tests for new options response header
---
 tests/Sabre/DAV/FSExt/NodesTest.php  | 1 +
 tests/Sabre/DAV/ServerPluginTest.php | 1 +
 tests/Sabre/DAV/ServerSimpleTest.php | 1 +
 3 files changed, 3 insertions(+)

diff --git a/tests/Sabre/DAV/FSExt/NodesTest.php b/tests/Sabre/DAV/FSExt/NodesTest.php
index 520759f..60a8fd8 100644
--- a/tests/Sabre/DAV/FSExt/NodesTest.php
+++ b/tests/Sabre/DAV/FSExt/NodesTest.php
@@ -209,6 +209,7 @@ class Sabre_DAV_FSExt_NodesTest extends Sabre_DAV_AbstractServer{
             'Allow'          => 'OPTIONS, GET, HEAD, DELETE, TRACE, PROPFIND, MKCOL, PUT, PROPPATCH, COPY, MOVE, REPORT',
             'Accept-Ranges'  => 'bytes',
             'Content-Length' => '0',
+            'X-Sabre-Version' => Sabre_DAV_Version::VERSION . '-' . Sabre_DAV_Version::STABILITY,
         ),$this->response->headers);
 
         $this->assertEquals('HTTP/1.1 200 Ok',$this->response->status);
diff --git a/tests/Sabre/DAV/ServerPluginTest.php b/tests/Sabre/DAV/ServerPluginTest.php
index b212baa..91a6e8f 100644
--- a/tests/Sabre/DAV/ServerPluginTest.php
+++ b/tests/Sabre/DAV/ServerPluginTest.php
@@ -34,6 +34,7 @@ class Sabre_DAV_ServerPluginTest extends Sabre_DAV_AbstractServer {
             'Allow'          => 'OPTIONS, GET, HEAD, DELETE, TRACE, PROPFIND, MKCOL, PUT, PROPPATCH, COPY, MOVE, REPORT, BEER, WINE',
             'Accept-Ranges'  => 'bytes',
             'Content-Length' =>  '0',
+            'X-Sabre-Version' => Sabre_DAV_Version::VERSION . '-' . Sabre_DAV_Version::STABILITY,
         ),$this->response->headers);
 
         $this->assertEquals('HTTP/1.1 200 Ok',$this->response->status);
diff --git a/tests/Sabre/DAV/ServerSimpleTest.php b/tests/Sabre/DAV/ServerSimpleTest.php
index 0c105a8..7420cb4 100644
--- a/tests/Sabre/DAV/ServerSimpleTest.php
+++ b/tests/Sabre/DAV/ServerSimpleTest.php
@@ -247,6 +247,7 @@ class Sabre_DAV_ServerSimpleTest extends Sabre_DAV_AbstractServer{
             'Allow'          => 'OPTIONS, GET, HEAD, DELETE, TRACE, PROPFIND, MKCOL, PUT, PROPPATCH, COPY, MOVE, REPORT',
             'Accept-Ranges'  => 'bytes',
             'Content-Length' => '0',
+            'X-Sabre-Version' => Sabre_DAV_Version::VERSION . '-' . Sabre_DAV_Version::STABILITY,
         ),$this->response->headers);
 
         $this->assertEquals('HTTP/1.1 200 Ok',$this->response->status);

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