]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix unit test 5435/head
authorJoas Schilling <coding@schilljs.com>
Wed, 7 Jun 2017 09:24:00 +0000 (11:24 +0200)
committerJoas Schilling <coding@schilljs.com>
Fri, 16 Jun 2017 08:47:56 +0000 (10:47 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
apps/dav/tests/unit/Connector/Sabre/FilesPluginTest.php

index 739c8f62540daf215a58fa37a545a07fedec3c18..885f3c23c24d25e70c72a73bd8a071b51d1e9dd5 100644 (file)
@@ -341,11 +341,12 @@ class FilesPluginTest extends TestCase {
                $this->assertEquals('my_fingerprint', $propFind->get(self::DATA_FINGERPRINT_PROPERTYNAME));
        }
 
-       /**
-        * @expectedException \Sabre\DAV\Exception\NotFound
-        */
        public function testGetPropertiesWhenNoPermission() {
-               /** @var \OCA\DAV\Connector\Sabre\Directory | \PHPUnit_Framework_MockObject_MockObject $node */
+               // No read permissions can be caused by files access control.
+               // But we still want to load the directory list, so this is okay for us.
+               // $this->expectException(\Sabre\DAV\Exception\NotFound::class);
+
+               /** @var \OCA\DAV\Connector\Sabre\Directory|\PHPUnit_Framework_MockObject_MockObject $node */
                $node = $this->getMockBuilder('\OCA\DAV\Connector\Sabre\Directory')
                        ->disableOriginalConstructor()
                        ->getMock();