From f4bb7bcbff3770387c2fecfa91ce4a60b916a474 Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 27 Nov 2020 08:04:00 +0000 Subject: update composer libs --- vendor/sabre/dav/tests/Sabre/DAV/HttpPutTest.php | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'vendor/sabre/dav/tests') 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', @@ -254,6 +254,24 @@ class HttpPutTest extends DAVServerTest $this->assertEquals(409, $response->getStatus()); } + /** + * 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 -- cgit v1.2.3