diff options
Diffstat (limited to 'vendor/sabre/dav/tests/Sabre/CardDAV/AbstractPluginTest.php')
-rw-r--r-- | vendor/sabre/dav/tests/Sabre/CardDAV/AbstractPluginTest.php | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/vendor/sabre/dav/tests/Sabre/CardDAV/AbstractPluginTest.php b/vendor/sabre/dav/tests/Sabre/CardDAV/AbstractPluginTest.php new file mode 100644 index 000000000..94081fc8b --- /dev/null +++ b/vendor/sabre/dav/tests/Sabre/CardDAV/AbstractPluginTest.php @@ -0,0 +1,41 @@ +<?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; + + } + +} |