moved deprecated communityhome, dav and yourls to the deprecated-addons repository

This commit is contained in:
Tobias Diekershoff 2018-06-02 11:23:11 +02:00
commit 31520f804d
675 changed files with 195144 additions and 0 deletions

View 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());
}
}