aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/sabre/dav/tests/Sabre
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/sabre/dav/tests/Sabre')
-rw-r--r--vendor/sabre/dav/tests/Sabre/DAV/Auth/Backend/AbstractBasicTest.php2
-rw-r--r--vendor/sabre/dav/tests/Sabre/DAV/TreeTest.php16
2 files changed, 17 insertions, 1 deletions
diff --git a/vendor/sabre/dav/tests/Sabre/DAV/Auth/Backend/AbstractBasicTest.php b/vendor/sabre/dav/tests/Sabre/DAV/Auth/Backend/AbstractBasicTest.php
index 455403aff..917f5ec3f 100644
--- a/vendor/sabre/dav/tests/Sabre/DAV/Auth/Backend/AbstractBasicTest.php
+++ b/vendor/sabre/dav/tests/Sabre/DAV/Auth/Backend/AbstractBasicTest.php
@@ -60,7 +60,7 @@ class AbstractBasicTest extends \PHPUnit_Framework_TestCase {
$backend->setRealm('writing unittests on a saturday night');
$backend->challenge($request, $response);
- $this->assertEquals(
+ $this->assertContains(
'Basic realm="writing unittests on a saturday night"',
$response->getHeader('WWW-Authenticate')
);
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();