aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/sabre/dav/tests
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-10-30 12:12:07 +0100
committerMario Vavti <mario@mariovavti.com>2018-10-30 12:12:07 +0100
commit2192ea6fdf21a00ccf44d626a01b756d194d6cbe (patch)
tree153d4b4ffb2bf40edf8aae66b82a274dac37c208 /vendor/sabre/dav/tests
parent0f19627407ccd373afe1ce2d2347ea240f3195c1 (diff)
downloadvolse-hubzilla-2192ea6fdf21a00ccf44d626a01b756d194d6cbe.tar.gz
volse-hubzilla-2192ea6fdf21a00ccf44d626a01b756d194d6cbe.tar.bz2
volse-hubzilla-2192ea6fdf21a00ccf44d626a01b756d194d6cbe.zip
update html_to_markdown, smarty and sabredav libs via composer
Diffstat (limited to 'vendor/sabre/dav/tests')
-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();