Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
mathroc authored Oct 11, 2024
1 parent de36f61 commit 43bc8e3
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/VObject/Property/ICalendar/RecurTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 43bc8e3

Please sign in to comment.