We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64b962a commit 2959e29Copy full SHA for 2959e29
1 file changed
src/Tests/Component/CalendarTest.php
@@ -85,6 +85,18 @@ public function testSetTimezone()
85
}
86
87
88
+ /**
89
+ * Test line endings of description
90
+ */
91
+ public function testDescriptionLineEndings()
92
+ {
93
+ $calendar = new Calendar();
94
+ $event = $calendar->newEvent();
95
+ $event->setDescription("Some description\r\nwith invalid line endings.");
96
+ $this->assertEquals("Some description\nwith invalid line endings.", $event->getProperty('DESCRIPTION'));
97
+ }
98
+
99
100
/**
101
* Get calendar test config
102
*
0 commit comments