27 $this->sharingPlugin->getFeatures()
34 $result = $this->server->getPropertiesForPath(
36 [
'{DAV:}share-access']
45 'href' =>
'shareable',
58 $result = $this->sharingPlugin->getPluginInfo();
59 $this->assertInternalType(
'array',
$result);
60 $this->assertEquals(
'sharing',
$result[
'name']);
66 $node = new \Sabre\DAV\Mock\Collection(
'foo');
70 $this->sharingPlugin->htmlActionsPanel($node,
$html,
'foo/bar')
82 $this->sharingPlugin->htmlActionsPanel($node,
$html,
'shareable')
84 $this->assertContains(
85 'Share this resource',
93 $this->assertNull($this->sharingPlugin->browserPostAction(
103 $this->assertFalse($this->sharingPlugin->browserPostAction(
108 'href' =>
'mailto:foo@example.org',
113 new \Sabre\DAV\Xml\Element\Sharee([
114 'href' =>
'mailto:foo@example.org',
121 $this->tree[0]->getInvites()
131 $this->sharingPlugin->browserPostAction(
146 $this->sharingPlugin->browserPostAction(
150 'href' =>
'mailto:foo@example.org',
162 $this->sharingPlugin->browserPostAction(
166 'href' =>
'mailto:foo@example.org',
178 $this->aclPlugin->setDefaultAcl([]);
179 $this->sharingPlugin->browserPostAction(
184 'href' =>
'mailto:foo@example.org',
testBrowserPostActionUnknownAction()
testBrowserPostActionNoAccess()
testBrowserPostActionBadAccess()
testBrowserPostActionNoHref()
testBrowserPostActionSuccess()
testBrowserPostActionAccessDenied()
This class may be used as a basis for other webdav-related unittests.