mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-07 23:29:28 +00:00
0bc0a09bf4
- application/extensions file system permission now is 775 - application/logs file system permission now is 775 - Added extensions directory in application/: config, controllers, helpers, hooks, libraries, models, views and widgets - Added view views/extensions/manage.php - Added controller controllers/system/extensions/Manager.php - Added library ExtensionsLib to manage extensions - Added model models/system/Extensions_model.php - Moved code related to print out info from MigrationLib to EPrintfLib
42 lines
908 B
PHP
42 lines
908 B
PHP
<?php
|
|
|
|
namespace Sabre\CardDAV;
|
|
|
|
use Sabre\DAV;
|
|
use Sabre\DAVACL;
|
|
|
|
abstract class AbstractPluginTest extends \PHPUnit_Framework_TestCase {
|
|
|
|
/**
|
|
* @var Sabre\CardDAV\Plugin
|
|
*/
|
|
protected $plugin;
|
|
/**
|
|
* @var Sabre\DAV\Server
|
|
*/
|
|
protected $server;
|
|
/**
|
|
* @var Sabre\CardDAV\Backend\Mock;
|
|
*/
|
|
protected $backend;
|
|
|
|
function setUp() {
|
|
|
|
$this->backend = new Backend\Mock();
|
|
$principalBackend = new DAVACL\PrincipalBackend\Mock();
|
|
|
|
$tree = array(
|
|
new AddressBookRoot($principalBackend, $this->backend),
|
|
new DAVACL\PrincipalCollection($principalBackend)
|
|
);
|
|
|
|
$this->plugin = new Plugin();
|
|
$this->plugin->directories = array('directory');
|
|
$this->server = new DAV\Server($tree);
|
|
$this->server->addPlugin($this->plugin);
|
|
$this->server->debugExceptions = true;
|
|
|
|
}
|
|
|
|
}
|