|
|
|
|
@ -105,11 +105,16 @@ class CustomPropertiesBackend extends \Test\TestCase {
|
|
|
|
|
* Test that propFind on a missing file soft fails
|
|
|
|
|
*/
|
|
|
|
|
public function testPropFindMissingFileSoftFail() {
|
|
|
|
|
$this->tree->expects($this->any())
|
|
|
|
|
$this->tree->expects($this->at(0))
|
|
|
|
|
->method('getNodeForPath')
|
|
|
|
|
->with('/dummypath')
|
|
|
|
|
->will($this->throwException(new \Sabre\DAV\Exception\NotFound()));
|
|
|
|
|
|
|
|
|
|
$this->tree->expects($this->at(1))
|
|
|
|
|
->method('getNodeForPath')
|
|
|
|
|
->with('/dummypath')
|
|
|
|
|
->will($this->throwException(new \Sabre\DAV\Exception\ServiceUnavailable()));
|
|
|
|
|
|
|
|
|
|
$propFind = new \Sabre\DAV\PropFind(
|
|
|
|
|
'/dummypath',
|
|
|
|
|
array(
|
|
|
|
|
@ -125,6 +130,11 @@ class CustomPropertiesBackend extends \Test\TestCase {
|
|
|
|
|
$propFind
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
$this->plugin->propFind(
|
|
|
|
|
'/dummypath',
|
|
|
|
|
$propFind
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
// no exception, soft fail
|
|
|
|
|
$this->assertTrue(true);
|
|
|
|
|
}
|
|
|
|
|
|