aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/sabre/dav/tests/Sabre/DAV/TreeTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/sabre/dav/tests/Sabre/DAV/TreeTest.php')
-rw-r--r--vendor/sabre/dav/tests/Sabre/DAV/TreeTest.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/vendor/sabre/dav/tests/Sabre/DAV/TreeTest.php b/vendor/sabre/dav/tests/Sabre/DAV/TreeTest.php
index e719e38d5..c70d17a22 100644
--- a/vendor/sabre/dav/tests/Sabre/DAV/TreeTest.php
+++ b/vendor/sabre/dav/tests/Sabre/DAV/TreeTest.php
@@ -24,6 +24,22 @@ class TreeTest extends \PHPUnit_Framework_TestCase {
}
+ function testCopyFile() {
+
+ $tree = new TreeMock();
+ $tree->copy('hi/file', 'hi/newfile');
+
+ $this->assertArrayHasKey('newfile', $tree->getNodeForPath('hi')->newFiles);
+ }
+
+ function testCopyFile0() {
+
+ $tree = new TreeMock();
+ $tree->copy('hi/file', 'hi/0');
+
+ $this->assertArrayHasKey('0', $tree->getNodeForPath('hi')->newFiles);
+ }
+
function testMove() {
$tree = new TreeMock();