[Pkg-owncloud-commits] [php-sabredav] 116/275: Some basic tests.
David Prévot
taffit at moszumanska.debian.org
Thu Sep 25 14:55:58 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository php-sabredav.
commit b44e9e2f345476fbee3a3ad306f867f1b08eb47d
Author: Evert Pot <me at evertpot.com>
Date: Wed Jul 30 18:53:31 2014 -0400
Some basic tests.
---
tests/Sabre/CalDAV/Schedule/PluginBasicTest.php | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/tests/Sabre/CalDAV/Schedule/PluginBasicTest.php b/tests/Sabre/CalDAV/Schedule/PluginBasicTest.php
new file mode 100644
index 0000000..5c31e4b
--- /dev/null
+++ b/tests/Sabre/CalDAV/Schedule/PluginBasicTest.php
@@ -0,0 +1,25 @@
+<?php
+
+namespace Sabre\CalDAV\Schedule;
+
+class PluginBasicTest extends \Sabre\DAVServerTest {
+
+ public $setupCalDAV = true;
+ public $setupCalDAVScheduling = true;
+
+ function testOptions() {
+
+ $plugin = new Plugin();
+ $this->assertEquals(['calendar-auto-schedule'], $plugin->getFeatures());
+
+ }
+
+ function testGetHTTPMethods() {
+
+ $this->assertEquals([], $this->caldavSchedulePlugin->getHTTPMethods('notfound'));
+ $this->assertEquals([], $this->caldavSchedulePlugin->getHTTPMethods('calendars/user1'));
+ $this->assertEquals(['POST'], $this->caldavSchedulePlugin->getHTTPMethods('calendars/user1/outbox'));
+
+ }
+
+}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabredav.git
More information about the Pkg-owncloud-commits
mailing list