ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilModulesEmployeeTalkVEventTest Class Reference
+ Inheritance diagram for ilModulesEmployeeTalkVEventTest:
+ Collaboration diagram for ilModulesEmployeeTalkVEventTest:

Public Member Functions

 testVEventRenderingWithValidDataWhichShouldSucceed ()
 

Detailed Description

Definition at line 25 of file ilModulesEmployeeTalkVEventTest.php.

Member Function Documentation

◆ testVEventRenderingWithValidDataWhichShouldSucceed()

ilModulesEmployeeTalkVEventTest::testVEventRenderingWithValidDataWhichShouldSucceed ( )

Definition at line 27 of file ilModulesEmployeeTalkVEventTest.php.

27  : void
28  {
29  $expectedStart = "BEGIN:VEVENT\r\n";
30  $expectedStart .= "UID: unique-id-of-some-sort\r\n";
31  $expectedStart .= "DESCRIPTION:test description\r\n";
32  $expectedStart .= "DTSTART;TZID=Europe/Paris:19700101T010010\r\n";
33  $expectedStart .= "DTEND;TZID=Europe/Paris:19700101T010020\r\n";
34  // Timestamps in between which breaks the test because they are changing
35  $expectedEnd = "ORGANIZER;CN=\"organiser-name\":MAILTO:org@anizer.local\r\n";
36  $expectedEnd .= "ATTENDEE;CN=\"attendee-name\";ROLE=REQ-PARTICIPANT;RSVP=TRUE:MAILTO:at@tendee.local\r\n";
37  $expectedEnd .= "SUMMARY:event summery\r\n";
38  $expectedEnd .= "LOCATION:Bern\r\n";
39  $expectedEnd .= "SEQUENCE:1\r\n";
40  $expectedEnd .= "PRIORITY:5\r\n";
41  $expectedEnd .= "STATUS:CONFIRMED\r\n";
42  $expectedEnd .= "TRANSP:OPAQUE\r\n";
43  $expectedEnd .= "X-MICROSOFT-CDO-BUSYSTATUS:BUSY\r\n";
44  $expectedEnd .= "CLASS:PUBLIC\r\n";
45  $expectedEnd .= "X-MICROSOFT-DISALLOW-COUNTER:TRUE\r\n";
46  $expectedEnd .= "BEGIN:VALARM\r\n";
47  $expectedEnd .= "DESCRIPTION:event summery\r\n";
48  $expectedEnd .= "TRIGGER:-PT15M\r\n";
49  $expectedEnd .= "ACTION:DISPLAY\r\n";
50  $expectedEnd .= "END:VALARM\r\n";
51  $expectedEnd .= "END:VEVENT\r\n";
52 
53  $subject = new VEvent(
54  "unique-id-of-some-sort",
55  "test description",
56  "event summery",
57  1,
58  VEventStatus::CONFIRMED,
59  "organiser-name",
60  "org@anizer.local",
61  "attendee-name",
62  "at@tendee.local",
63  10,
64  20,
65  false,
66  'https://ilias.de',
67  'Bern'
68  );
69 
70  $result = $subject->render();
71 
72  self::assertStringStartsWith($expectedStart, $result);
73  self::assertStringEndsWith($expectedEnd, $result);
74  }

The documentation for this class was generated from the following file: