Definition at line 8 of file AbstractTest.php.
◆ testCalendarQuery()
Sabre\CalDAV\Backend\AbstractTest::testCalendarQuery |
( |
| ) |
|
Definition at line 22 of file AbstractTest.php.
22 {
23
24 $abstract = new AbstractMock();
25 $filters = [
26 'name' => 'VCALENDAR',
27 'comp-filters' => [
28 [
29 'name' => 'VEVENT',
30 'comp-filters' => [],
31 'prop-filters' => [],
32 'is-not-defined' => false,
33 'time-range' => null,
34 ],
35 ],
36 'prop-filters' => [],
37 'is-not-defined' => false,
38 'time-range' => null,
39 ];
40
41 $this->assertEquals([
42 'event1.ics',
43 ], $abstract->calendarQuery(1, $filters));
44
45 }
◆ testGetCalendarObjectByUID()
Sabre\CalDAV\Backend\AbstractTest::testGetCalendarObjectByUID |
( |
| ) |
|
Definition at line 47 of file AbstractTest.php.
47 {
48
49 $abstract = new AbstractMock();
50 $this->assertNull(
51 $abstract->getCalendarObjectByUID('principal1', 'zim')
52 );
53 $this->assertEquals(
54 'cal1/event1.ics',
55 $abstract->getCalendarObjectByUID('principal1', 'foo')
56 );
57 $this->assertNull(
58 $abstract->getCalendarObjectByUID('principal3', 'foo')
59 );
60 $this->assertNull(
61 $abstract->getCalendarObjectByUID('principal1', 'shared')
62 );
63
64 }
◆ testGetMultipleCalendarObjects()
Sabre\CalDAV\Backend\AbstractTest::testGetMultipleCalendarObjects |
( |
| ) |
|
Definition at line 66 of file AbstractTest.php.
66 {
67
68 $abstract = new AbstractMock();
69 $result = $abstract->getMultipleCalendarObjects(1, [
70 'event1.ics',
71 'task1.ics',
72 ]);
73
74 $expected = [
75 [
76 'id' => 1,
77 'calendarid' => 1,
78 'uri' => 'event1.ics',
79 'calendardata' => "BEGIN:VCALENDAR\r\nBEGIN:VEVENT\r\nUID:foo\r\nEND:VEVENT\r\nEND:VCALENDAR\r\n",
80 ],
81 [
82 'id' => 2,
83 'calendarid' => 1,
84 'uri' => 'task1.ics',
85 'calendardata' => "BEGIN:VCALENDAR\r\nBEGIN:VTODO\r\nEND:VTODO\r\nEND:VCALENDAR\r\n",
86 ],
87 ];
88
89 $this->assertEquals($expected,
$result);
90
91
92 }
References $result.
◆ testUpdateCalendar()
Sabre\CalDAV\Backend\AbstractTest::testUpdateCalendar |
( |
| ) |
|
Definition at line 10 of file AbstractTest.php.
10 {
11
12 $abstract = new AbstractMock();
13 $propPatch = new PropPatch(['{DAV:}displayname' => 'anything']);
14
15 $abstract->updateCalendar('randomid', $propPatch);
17
19
20 }
References $result.
The documentation for this class was generated from the following file: