1313use  InvalidArgumentException ;
1414use  OC \Calendar \CalendarEventBuilder ;
1515use  OCP \AppFramework \Utility \ITimeFactory ;
16+ use  OCP \Calendar \CalendarEventStatus ;
1617use  OCP \Calendar \ICreateFromString ;
1718use  PHPUnit \Framework \MockObject \MockObject ;
1819use  Test \TestCase ;
@@ -37,6 +38,7 @@ protected function setUp(): void {
3738	public  function  testToIcs (): void  {
3839		$ this calendarEventBuilder ->setStartDate (new  DateTimeImmutable ('2025-01-05T17:09:58Z ' ));
3940		$ this calendarEventBuilder ->setEndDate (new  DateTimeImmutable ('2025-01-05T17:19:58Z ' ));
41+ 		$ this calendarEventBuilder ->setStatus (CalendarEventStatus::CONFIRMED );
4042		$ this calendarEventBuilder ->setSummary ('My event ' );
4143		$ this calendarEventBuilder ->setDescription ('Foo bar baz ' );
4244		$ this calendarEventBuilder ->setOrganizer ('mailto:organizer@domain.tld ' );
@@ -51,6 +53,7 @@ public function testToIcs(): void {
5153	public  function  testToIcsWithoutOrganizerAndAttendees (): void  {
5254		$ this calendarEventBuilder ->setStartDate (new  DateTimeImmutable ('2025-01-05T17:09:58Z ' ));
5355		$ this calendarEventBuilder ->setEndDate (new  DateTimeImmutable ('2025-01-05T17:19:58Z ' ));
56+ 		$ this calendarEventBuilder ->setStatus (CalendarEventStatus::CONFIRMED );
5457		$ this calendarEventBuilder ->setSummary ('My event ' );
5558		$ this calendarEventBuilder ->setDescription ('Foo bar baz ' );
5659
@@ -62,6 +65,7 @@ public function testToIcsWithoutOrganizerAndAttendees(): void {
6265	public  function  testToIcsWithoutMailtoPrefix (): void  {
6366		$ this calendarEventBuilder ->setStartDate (new  DateTimeImmutable ('2025-01-05T17:09:58Z ' ));
6467		$ this calendarEventBuilder ->setEndDate (new  DateTimeImmutable ('2025-01-05T17:19:58Z ' ));
68+ 		$ this calendarEventBuilder ->setStatus (CalendarEventStatus::CONFIRMED );
6569		$ this calendarEventBuilder ->setSummary ('My event ' );
6670		$ this calendarEventBuilder ->setDescription ('Foo bar baz ' );
6771		$ this calendarEventBuilder ->setOrganizer ('organizer@domain.tld ' );
@@ -76,6 +80,7 @@ public function testToIcsWithoutMailtoPrefix(): void {
7680	public  function  testCreateInCalendar (): void  {
7781		$ this calendarEventBuilder ->setStartDate (new  DateTimeImmutable ('2025-01-05T17:09:58Z ' ));
7882		$ this calendarEventBuilder ->setEndDate (new  DateTimeImmutable ('2025-01-05T17:19:58Z ' ));
83+ 		$ this calendarEventBuilder ->setStatus (CalendarEventStatus::CONFIRMED );
7984		$ this calendarEventBuilder ->setSummary ('My event ' );
8085		$ this calendarEventBuilder ->setDescription ('Foo bar baz ' );
8186		$ this calendarEventBuilder ->setOrganizer ('organizer@domain.tld ' );
0 commit comments