mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-19 14:57:02 +00:00
Initial Release of the calendar plugin
This commit is contained in:
parent
45cc9885fc
commit
7115197a33
561 changed files with 189494 additions and 0 deletions
32
dav/SabreDAV/tests/Sabre/DAV/Auth/MockBackend.php
Normal file
32
dav/SabreDAV/tests/Sabre/DAV/Auth/MockBackend.php
Normal file
|
@ -0,0 +1,32 @@
|
|||
<?php
|
||||
|
||||
class Sabre_DAV_Auth_MockBackend implements Sabre_DAV_Auth_IBackend {
|
||||
|
||||
protected $currentUser;
|
||||
|
||||
/**
|
||||
* @param Sabre_DAV_Server $server
|
||||
* @param string $realm
|
||||
* @throws Sabre_DAV_Exception_NotAuthenticated
|
||||
*/
|
||||
function authenticate(Sabre_DAV_Server $server, $realm) {
|
||||
|
||||
if ($realm=='failme') throw new Sabre_DAV_Exception_NotAuthenticated('deliberate fail');
|
||||
|
||||
$this->currentUser = 'admin';
|
||||
|
||||
}
|
||||
|
||||
function setCurrentUser($user) {
|
||||
|
||||
$this->currentUser = $user;
|
||||
|
||||
}
|
||||
|
||||
function getCurrentUser() {
|
||||
|
||||
return $this->currentUser;
|
||||
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue