diff --git a/tests/VObject/Property/ICalendar/RecurTest.php b/tests/VObject/Property/ICalendar/RecurTest.php index b2750f03b..0adf30215 100644 --- a/tests/VObject/Property/ICalendar/RecurTest.php +++ b/tests/VObject/Property/ICalendar/RecurTest.php @@ -4,6 +4,7 @@ use PHPUnit\Framework\TestCase; use Sabre\VObject\Component\VCalendar; +use Sabre\VObject\InvalidDataException; use Sabre\VObject\Node; use Sabre\VObject\Reader; @@ -194,6 +195,16 @@ public function testValidateStripNoFreq(): void ); } + public function testUnrepairableRRule(): void + { + $calendar = new VCalendar(); + $property = $calendar->createProperty('RRULE', 'IAmNotARRule'); + + $this->expectException(InvalidDataException::class); + + $property->validate(Node::REPAIR); + } + public function testValidateInvalidByMonthRruleWithRepair(): void { $calendar = new VCalendar();