summaryrefslogtreecommitdiffstats
path: root/apps/dav/tests/unit/caldav
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-11-16 15:49:46 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-11-16 15:49:46 +0100
commit867fd94dc663652da1465de8537f01b8c7b4db07 (patch)
treeb7c682e73246f51a04faea271c3a01d870f20974 /apps/dav/tests/unit/caldav
parent23e7a62717fe6ee84c54ce1d3c601b477119696e (diff)
downloadnextcloud-server-867fd94dc663652da1465de8537f01b8c7b4db07.tar.gz
nextcloud-server-867fd94dc663652da1465de8537f01b8c7b4db07.zip
Add scheduling backend
Diffstat (limited to 'apps/dav/tests/unit/caldav')
-rw-r--r--apps/dav/tests/unit/caldav/caldavbackendtest.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/apps/dav/tests/unit/caldav/caldavbackendtest.php b/apps/dav/tests/unit/caldav/caldavbackendtest.php
index beb88a398b9..5e3d4288aa7 100644
--- a/apps/dav/tests/unit/caldav/caldavbackendtest.php
+++ b/apps/dav/tests/unit/caldav/caldavbackendtest.php
@@ -322,4 +322,18 @@ EOD;
$this->assertEquals(0, count($subscriptions));
}
+ public function testScheduling() {
+ $this->backend->createSchedulingObject(self::UNIT_TEST_USER, 'Sample Schedule', '');
+
+ $sos = $this->backend->getSchedulingObjects(self::UNIT_TEST_USER);
+ $this->assertEquals(1, count($sos));
+
+ $so = $this->backend->getSchedulingObject(self::UNIT_TEST_USER, 'Sample Schedule');
+ $this->assertNotNull($so);
+
+ $this->backend->deleteSchedulingObject(self::UNIT_TEST_USER, 'Sample Schedule');
+
+ $sos = $this->backend->getSchedulingObjects(self::UNIT_TEST_USER);
+ $this->assertEquals(0, count($sos));
+ }
}