mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-08-23 06:34:00 +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
|
@ -0,0 +1,31 @@
|
|||
<?php
|
||||
|
||||
abstract class Sabre_DAV_Auth_Backend_AbstractPDOTest extends PHPUnit_Framework_TestCase {
|
||||
|
||||
abstract function getPDO();
|
||||
|
||||
function testConstruct() {
|
||||
|
||||
$pdo = $this->getPDO();
|
||||
$backend = new Sabre_DAV_Auth_Backend_PDO($pdo);
|
||||
$this->assertTrue($backend instanceof Sabre_DAV_Auth_Backend_PDO);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @depends testConstruct
|
||||
*/
|
||||
function testUserInfo() {
|
||||
|
||||
$pdo = $this->getPDO();
|
||||
$backend = new Sabre_DAV_Auth_Backend_PDO($pdo);
|
||||
|
||||
$this->assertNull($backend->getDigestHash('realm','blabla'));
|
||||
|
||||
$expected = 'hash';
|
||||
|
||||
$this->assertEquals($expected, $backend->getDigestHash('realm','user'));
|
||||
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue