diff options
author | Hilmar R <u02@u29lx193> | 2021-01-22 01:38:43 +0100 |
---|---|---|
committer | Hilmar R <u02@u29lx193> | 2021-01-22 01:38:43 +0100 |
commit | 523765b968a5d94a98eee12854fc527d5abbc2e7 (patch) | |
tree | a71caba8943c674917821a4afd333eb39ac92b2e /vendor/sabre/dav/tests/Sabre/DAV/HttpPutTest.php | |
parent | 78f150cfbc1b713bfba3101fdc3f1fd624120637 (diff) | |
parent | 254e30bea173e350a24756cbd8cf4acdfe32933e (diff) | |
download | volse-hubzilla-523765b968a5d94a98eee12854fc527d5abbc2e7.tar.gz volse-hubzilla-523765b968a5d94a98eee12854fc527d5abbc2e7.tar.bz2 volse-hubzilla-523765b968a5d94a98eee12854fc527d5abbc2e7.zip |
Merge branch 'master' into air.5
Diffstat (limited to 'vendor/sabre/dav/tests/Sabre/DAV/HttpPutTest.php')
-rw-r--r-- | vendor/sabre/dav/tests/Sabre/DAV/HttpPutTest.php | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/vendor/sabre/dav/tests/Sabre/DAV/HttpPutTest.php b/vendor/sabre/dav/tests/Sabre/DAV/HttpPutTest.php index d3932a4c6..543ec652a 100644 --- a/vendor/sabre/dav/tests/Sabre/DAV/HttpPutTest.php +++ b/vendor/sabre/dav/tests/Sabre/DAV/HttpPutTest.php @@ -241,7 +241,7 @@ class HttpPutTest extends DAVServerTest * * @depends testPut */ - public function testPutNoParent() + public function testPutParentIsNotCollection() { $request = new HTTP\Request( 'PUT', @@ -255,6 +255,24 @@ class HttpPutTest extends DAVServerTest } /** + * PUT thats created in a non-existent collection should be rejected. + * + * @depends testPut + */ + public function testPutParentCollectionDoesNotExist() + { + $request = new HTTP\Request( + 'PUT', + '/non-existent-collection/file2', + [], + 'hello' + ); + + $response = $this->request($request); + $this->assertEquals(409, $response->getStatus()); + } + + /** * Finder may sometimes make a request, which gets its content-body * stripped. We can't always prevent this from happening, but in some cases * we can detected this and return an error instead. |