mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-07 08:58:49 +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
40
dav/SabreDAV/tests/Sabre/DAV/Auth/Backend/ApacheTest.php
Normal file
40
dav/SabreDAV/tests/Sabre/DAV/Auth/Backend/ApacheTest.php
Normal file
|
@ -0,0 +1,40 @@
|
|||
<?php
|
||||
|
||||
class Sabre_DAV_Auth_Backend_ApacheTest extends PHPUnit_Framework_TestCase {
|
||||
|
||||
function testConstruct() {
|
||||
|
||||
$backend = new Sabre_DAV_Auth_Backend_Apache();
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException Sabre_DAV_Exception
|
||||
*/
|
||||
function testNoHeader() {
|
||||
|
||||
$server = new Sabre_DAV_Server();
|
||||
$backend = new Sabre_DAV_Auth_Backend_Apache();
|
||||
$backend->authenticate($server,'Realm');
|
||||
|
||||
}
|
||||
|
||||
function testRemoteUser() {
|
||||
|
||||
$backend = new Sabre_DAV_Auth_Backend_Apache();
|
||||
|
||||
$server = new Sabre_DAV_Server();
|
||||
$request = new Sabre_HTTP_Request(array(
|
||||
'REMOTE_USER' => 'username',
|
||||
));
|
||||
$server->httpRequest = $request;
|
||||
|
||||
$this->assertTrue($backend->authenticate($server, 'Realm'));
|
||||
|
||||
$userInfo = 'username';
|
||||
|
||||
$this->assertEquals($userInfo, $backend->getCurrentUser());
|
||||
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue