From 832a16ddf37f2b6ad6a88a0a3e4762d506b39a33 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Sun, 29 Sep 2019 09:44:26 +0200 Subject: [PATCH] Remove faulty test Sabre-Vobject 3.5 is more forgiving than 3.3 for which the test was created --- plugins/libcalendaring/tests/libvcalendar.php | 8 -------- .../tests/resources/invalid-event.ics | 14 -------------- 2 files changed, 22 deletions(-) delete mode 100644 plugins/libcalendaring/tests/resources/invalid-event.ics diff --git a/plugins/libcalendaring/tests/libvcalendar.php b/plugins/libcalendaring/tests/libvcalendar.php index 7fca464e..c181dcd9 100644 --- a/plugins/libcalendaring/tests/libvcalendar.php +++ b/plugins/libcalendaring/tests/libvcalendar.php @@ -102,14 +102,6 @@ class libvcalendar_test extends PHPUnit_Framework_TestCase $this->assertFalse(array_key_exists('changed', $event), "No changed date field"); } - function test_invalid_vevent() - { - $this->setExpectedException('\Sabre\VObject\ParseException'); - - $ical = new libvcalendar(); - $events = $ical->import_from_file(__DIR__ . '/resources/invalid-event.ics', 'UTF-8', true); - } - /** * Test some extended ical properties such as attendees, recurrence rules, alarms and attachments */ diff --git a/plugins/libcalendaring/tests/resources/invalid-event.ics b/plugins/libcalendaring/tests/resources/invalid-event.ics deleted file mode 100644 index f7200de1..00000000 --- a/plugins/libcalendaring/tests/resources/invalid-event.ics +++ /dev/null @@ -1,14 +0,0 @@ -BEGIN:VCALENDAR -VERSION:2.0 -PRODID:-//Apple Inc.//iCal 5.0.3//EN -CALSCALE:GREGORIAN -BEGIN:VEVENT -CREATED:20130917T000000Z -LAST-MODIFIED:20130755 -UID:C968B885-08FB-40E5-B89E-6FA05F26AACC -TRANSP:TRANSPARENT -SUMMARY:Event with no end date nor duration -DTSTART;VALUE=DATE-TIME:20131001T120000Z -SEQUENCE:2 -END:VEVENT -END:VCALENDAR