public function testGetPublicPermissions() { $this->plugin = new \OCA\DAV\Connector\Sabre\FilesPlugin($this->tree, $this->view, true); $this->plugin->initialize($this->server); $propFind = new \Sabre\DAV\PropFind('/dummyPath', [self::PERMISSIONS_PROPERTYNAME], 0); $node = $this->createTestNode('\\OCA\\DAV\\Connector\\Sabre\\File'); $node->expects($this->any())->method('getDavPermissions')->will($this->returnValue('DWCKMSR')); $this->plugin->handleGetProperties($propFind, $node); $this->assertEquals('DWCKR', $propFind->get(self::PERMISSIONS_PROPERTYNAME)); }