@@ -1948,40 +1948,46 @@ public function testUnshare(): void {
19481948
19491949 }
19501950
1951- public function testDefaultAlarmProperty (): void {
1951+ public function testDefaultAlarmProperties (): void {
19521952 $ calendarId = $ this ->createTestCalendar ();
19531953
1954- // Test setting default alarm property to 15 minutes before (-900 seconds)
1954+ // Test setting both default alarm properties
19551955 $ patch = new PropPatch ([
1956- '{http://nextcloud.com/ns}default-alarm ' => -900
1956+ '{http://nextcloud.com/ns}default-alarm-part-day ' => -900 ,
1957+ '{http://nextcloud.com/ns}default-alarm-full-day ' => -3600 ,
19571958 ]);
19581959 $ this ->backend ->updateCalendar ($ calendarId , $ patch );
19591960 $ patch ->commit ();
19601961
1961- // Verify the property was set
1962+ // Verify the properties were set
19621963 $ calendars = $ this ->backend ->getCalendarsForUser (self ::UNIT_TEST_USER );
19631964 $ this ->assertCount (1 , $ calendars );
1964- $ this ->assertEquals (-900 , $ calendars [0 ]['{http://nextcloud.com/ns}default-alarm ' ]);
1965+ $ this ->assertEquals (-900 , $ calendars [0 ]['{http://nextcloud.com/ns}default-alarm-part-day ' ]);
1966+ $ this ->assertEquals (-3600 , $ calendars [0 ]['{http://nextcloud.com/ns}default-alarm-full-day ' ]);
19651967
1966- // Test updating to a different value (1 day before = -86400 seconds)
1968+ // Test updating to different values
19671969 $ patch = new PropPatch ([
1968- '{http://nextcloud.com/ns}default-alarm ' => -86400
1970+ '{http://nextcloud.com/ns}default-alarm-part-day ' => -86400 ,
1971+ '{http://nextcloud.com/ns}default-alarm-full-day ' => -43200 ,
19691972 ]);
19701973 $ this ->backend ->updateCalendar ($ calendarId , $ patch );
19711974 $ patch ->commit ();
19721975
19731976 $ calendars = $ this ->backend ->getCalendarsForUser (self ::UNIT_TEST_USER );
1974- $ this ->assertEquals (-86400 , $ calendars [0 ]['{http://nextcloud.com/ns}default-alarm ' ]);
1977+ $ this ->assertEquals (-86400 , $ calendars [0 ]['{http://nextcloud.com/ns}default-alarm-part-day ' ]);
1978+ $ this ->assertEquals (-43200 , $ calendars [0 ]['{http://nextcloud.com/ns}default-alarm-full-day ' ]);
19751979
1976- // Test setting to "none"
1980+ // Test setting to null
19771981 $ patch = new PropPatch ([
1978- '{http://nextcloud.com/ns}default-alarm ' => null
1982+ '{http://nextcloud.com/ns}default-alarm-part-day ' => null ,
1983+ '{http://nextcloud.com/ns}default-alarm-full-day ' => null ,
19791984 ]);
19801985 $ this ->backend ->updateCalendar ($ calendarId , $ patch );
19811986 $ patch ->commit ();
19821987
19831988 $ calendars = $ this ->backend ->getCalendarsForUser (self ::UNIT_TEST_USER );
1984- $ this ->assertEquals (null , $ calendars [0 ]['{http://nextcloud.com/ns}default-alarm ' ]);
1989+ $ this ->assertNull ($ calendars [0 ]['{http://nextcloud.com/ns}default-alarm-part-day ' ]);
1990+ $ this ->assertNull ($ calendars [0 ]['{http://nextcloud.com/ns}default-alarm-full-day ' ]);
19851991
19861992 // Clean up
19871993 $ this ->backend ->deleteCalendar ($ calendars [0 ]['id ' ], true );
0 commit comments