[Pkg-owncloud-commits] [php-sabredav] 12/16: Fixed unittest.

David Prévot taffit at moszumanska.debian.org
Sat Sep 5 15:23:58 UTC 2015


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

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

commit 49a666925986af425626f223c30b855967e6a830
Author: Evert Pot <me at evertpot.com>
Date:   Sat Sep 5 00:20:39 2015 +0200

    Fixed unittest.
---
 tests/Sabre/DAV/Mock/File.php | 18 +++++-------------
 1 file changed, 5 insertions(+), 13 deletions(-)

diff --git a/tests/Sabre/DAV/Mock/File.php b/tests/Sabre/DAV/Mock/File.php
index 1243e9e..ba49796 100644
--- a/tests/Sabre/DAV/Mock/File.php
+++ b/tests/Sabre/DAV/Mock/File.php
@@ -47,6 +47,11 @@ class File extends DAV\File {
 
     }
 
+    /**
+     * Changes the name of the node.
+     *
+     * @return void
+     */
     function setName($name) {
 
         $this->name = $name;
@@ -97,19 +102,6 @@ class File extends DAV\File {
     }
 
     /**
-     * Changes the name of the node.
-     *
-     * @return void
-     */
-    public function setName($newName) {
-
-        $this->parent->deleteChild($this->name);
-        $this->name = $newName;
-        $this->parent->createFile($newName, $this->contents);
-
-    }
-
-    /**
      * Returns the ETag for a file
      *
      * An ETag is a unique identifier representing the current version of the file. If the file changes, the ETag MUST change.

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