From eccc2600e06d4575bac580b9ca24ab024c064bd3 Mon Sep 17 00:00:00 2001 From: Jaymz Rhime Date: Wed, 1 Mar 2023 08:01:18 -0600 Subject: [PATCH] Update tests to account for new datetime format (cherry picked from commit 8db7d3e722bcd3b28f70581c01b67cbd3d839da5) --- tests/Generators/IcsGeneratorTest.php | 2 +- ...cription_is_html_code_event_link_with_allday_flag__1.txt | 6 +++--- ...rTest__it_can_generate_a_multiple_days_event_link__1.txt | 6 +++--- ...erate_a_multiple_days_event_link_with_allday_flag__1.txt | 4 ++-- ...GeneratorTest__it_can_generate_a_short_event_link__1.txt | 6 +++--- ...t__it_can_generate_a_single_day_allday_event_link__1.txt | 4 ++-- ...Test__it_can_generate_an_ics_link_with_custom_uid__1.txt | 6 +++--- .../IcsGeneratorTest__it_has_a_product_dtstamp__1.txt | 6 +++--- .../IcsGeneratorTest__it_has_a_product_id__1.txt | 6 +++--- 9 files changed, 23 insertions(+), 23 deletions(-) diff --git a/tests/Generators/IcsGeneratorTest.php b/tests/Generators/IcsGeneratorTest.php index 94f639c..3c9fb64 100644 --- a/tests/Generators/IcsGeneratorTest.php +++ b/tests/Generators/IcsGeneratorTest.php @@ -50,7 +50,7 @@ public function it_has_a_product_id() public function it_has_a_product_dtstamp() { $this->assertMatchesSnapshot( - $this->generator(['DTSTAMP' => 'TZID=UTC:20180201T090000'])->generate($this->createShortEventLink()) + $this->generator(['DTSTAMP' => '20180201T090000Z'])->generate($this->createShortEventLink()) ); } } diff --git a/tests/Generators/__snapshots__/IcsGeneratorTest__it_can_generate_a_description_is_html_code_event_link_with_allday_flag__1.txt b/tests/Generators/__snapshots__/IcsGeneratorTest__it_can_generate_a_description_is_html_code_event_link_with_allday_flag__1.txt index a5c7a11..505d91b 100644 --- a/tests/Generators/__snapshots__/IcsGeneratorTest__it_can_generate_a_description_is_html_code_event_link_with_allday_flag__1.txt +++ b/tests/Generators/__snapshots__/IcsGeneratorTest__it_can_generate_a_description_is_html_code_event_link_with_allday_flag__1.txt @@ -4,9 +4,9 @@ PRODID:Spatie calendar-links BEGIN:VEVENT UID:9fc99e4f3dcee13f23355d63918b9a0c SUMMARY:Birthday Party +1 -DTSTAMP;TZID=UTC:20180201T090000 -DTSTART;TZID=UTC:20180201T090000 -DTEND;TZID=UTC:20180201T180000 +DTSTAMP:20180201T090000Z +DTSTART:20180201T090000Z +DTEND:20180201T180000Z DESCRIPTION:With balloons\, clowns and stuff\nBring a dog\, bring a frog.\nThere will be line breaks on it.\nProject link calendar-links\n\n\nThank you.\n LOCATION:Party Lane 1A\, 1337 Funtown END:VEVENT diff --git a/tests/Generators/__snapshots__/IcsGeneratorTest__it_can_generate_a_multiple_days_event_link__1.txt b/tests/Generators/__snapshots__/IcsGeneratorTest__it_can_generate_a_multiple_days_event_link__1.txt index 6473d64..b0ad625 100644 --- a/tests/Generators/__snapshots__/IcsGeneratorTest__it_can_generate_a_multiple_days_event_link__1.txt +++ b/tests/Generators/__snapshots__/IcsGeneratorTest__it_can_generate_a_multiple_days_event_link__1.txt @@ -4,9 +4,9 @@ PRODID:Spatie calendar-links BEGIN:VEVENT UID:2009a227b7dd438a285434127f67f267 SUMMARY:New Year -DTSTAMP;TZID=UTC:20191231T230000 -DTSTART;TZID=UTC:20191231T230000 -DTEND;TZID=UTC:20200101T010000 +DTSTAMP:20191231T230000Z +DTSTART:20191231T230000Z +DTEND:20200101T010000Z DESCRIPTION:With balloons\, clowns and stuff\nBring a dog\, bring a frog LOCATION:Party Lane 1A\, 1337 Funtown END:VEVENT diff --git a/tests/Generators/__snapshots__/IcsGeneratorTest__it_can_generate_a_multiple_days_event_link_with_allday_flag__1.txt b/tests/Generators/__snapshots__/IcsGeneratorTest__it_can_generate_a_multiple_days_event_link_with_allday_flag__1.txt index 5d63b6b..2245885 100644 --- a/tests/Generators/__snapshots__/IcsGeneratorTest__it_can_generate_a_multiple_days_event_link_with_allday_flag__1.txt +++ b/tests/Generators/__snapshots__/IcsGeneratorTest__it_can_generate_a_multiple_days_event_link_with_allday_flag__1.txt @@ -4,8 +4,8 @@ PRODID:Spatie calendar-links BEGIN:VEVENT UID:47e044bc36ced4538c62fc17c3ba087b SUMMARY:Birthday -DTSTAMP;TZID=20180201 -DTSTART:20180201 +DTSTAMP:20180201Z +DTSTART:20180201Z DURATION:P5D DESCRIPTION:With balloons\, clowns and stuff\nBring a dog\, bring a frog LOCATION:Party Lane 1A\, 1337 Funtown diff --git a/tests/Generators/__snapshots__/IcsGeneratorTest__it_can_generate_a_short_event_link__1.txt b/tests/Generators/__snapshots__/IcsGeneratorTest__it_can_generate_a_short_event_link__1.txt index dff2003..e0bd621 100644 --- a/tests/Generators/__snapshots__/IcsGeneratorTest__it_can_generate_a_short_event_link__1.txt +++ b/tests/Generators/__snapshots__/IcsGeneratorTest__it_can_generate_a_short_event_link__1.txt @@ -4,9 +4,9 @@ PRODID:Spatie calendar-links BEGIN:VEVENT UID:94ab75add84a67c019eae57539658036 SUMMARY:Birthday -DTSTAMP;TZID=UTC:20180201T090000 -DTSTART;TZID=UTC:20180201T090000 -DTEND;TZID=UTC:20180201T180000 +DTSTAMP:20180201T090000Z +DTSTART:20180201T090000Z +DTEND:20180201T180000Z DESCRIPTION:With balloons\, clowns and stuff\nBring a dog\, bring a frog LOCATION:Party Lane 1A\, 1337 Funtown END:VEVENT diff --git a/tests/Generators/__snapshots__/IcsGeneratorTest__it_can_generate_a_single_day_allday_event_link__1.txt b/tests/Generators/__snapshots__/IcsGeneratorTest__it_can_generate_a_single_day_allday_event_link__1.txt index 87feba4..d4142ee 100644 --- a/tests/Generators/__snapshots__/IcsGeneratorTest__it_can_generate_a_single_day_allday_event_link__1.txt +++ b/tests/Generators/__snapshots__/IcsGeneratorTest__it_can_generate_a_single_day_allday_event_link__1.txt @@ -4,8 +4,8 @@ PRODID:Spatie calendar-links BEGIN:VEVENT UID:aaf6b0d9a2c43d4a1c803a8c80793a08 SUMMARY:Birthday -DTSTAMP;TZID=20180201 -DTSTART:20180201 +DTSTAMP:20180201Z +DTSTART:20180201Z DURATION:P1D DESCRIPTION:With balloons\, clowns and stuff\nBring a dog\, bring a frog LOCATION:Party Lane 1A\, 1337 Funtown diff --git a/tests/Generators/__snapshots__/IcsGeneratorTest__it_can_generate_an_ics_link_with_custom_uid__1.txt b/tests/Generators/__snapshots__/IcsGeneratorTest__it_can_generate_an_ics_link_with_custom_uid__1.txt index 1912759..a451c8e 100644 --- a/tests/Generators/__snapshots__/IcsGeneratorTest__it_can_generate_an_ics_link_with_custom_uid__1.txt +++ b/tests/Generators/__snapshots__/IcsGeneratorTest__it_can_generate_an_ics_link_with_custom_uid__1.txt @@ -4,9 +4,9 @@ PRODID:Spatie calendar-links BEGIN:VEVENT UID:random-uid SUMMARY:Birthday -DTSTAMP;TZID=UTC:20180201T090000 -DTSTART;TZID=UTC:20180201T090000 -DTEND;TZID=UTC:20180201T180000 +DTSTAMP:20180201T090000Z +DTSTART:20180201T090000Z +DTEND:20180201T180000Z DESCRIPTION:With balloons\, clowns and stuff\nBring a dog\, bring a frog LOCATION:Party Lane 1A\, 1337 Funtown END:VEVENT diff --git a/tests/Generators/__snapshots__/IcsGeneratorTest__it_has_a_product_dtstamp__1.txt b/tests/Generators/__snapshots__/IcsGeneratorTest__it_has_a_product_dtstamp__1.txt index dff2003..e0bd621 100644 --- a/tests/Generators/__snapshots__/IcsGeneratorTest__it_has_a_product_dtstamp__1.txt +++ b/tests/Generators/__snapshots__/IcsGeneratorTest__it_has_a_product_dtstamp__1.txt @@ -4,9 +4,9 @@ PRODID:Spatie calendar-links BEGIN:VEVENT UID:94ab75add84a67c019eae57539658036 SUMMARY:Birthday -DTSTAMP;TZID=UTC:20180201T090000 -DTSTART;TZID=UTC:20180201T090000 -DTEND;TZID=UTC:20180201T180000 +DTSTAMP:20180201T090000Z +DTSTART:20180201T090000Z +DTEND:20180201T180000Z DESCRIPTION:With balloons\, clowns and stuff\nBring a dog\, bring a frog LOCATION:Party Lane 1A\, 1337 Funtown END:VEVENT diff --git a/tests/Generators/__snapshots__/IcsGeneratorTest__it_has_a_product_id__1.txt b/tests/Generators/__snapshots__/IcsGeneratorTest__it_has_a_product_id__1.txt index dff2003..e0bd621 100644 --- a/tests/Generators/__snapshots__/IcsGeneratorTest__it_has_a_product_id__1.txt +++ b/tests/Generators/__snapshots__/IcsGeneratorTest__it_has_a_product_id__1.txt @@ -4,9 +4,9 @@ PRODID:Spatie calendar-links BEGIN:VEVENT UID:94ab75add84a67c019eae57539658036 SUMMARY:Birthday -DTSTAMP;TZID=UTC:20180201T090000 -DTSTART;TZID=UTC:20180201T090000 -DTEND;TZID=UTC:20180201T180000 +DTSTAMP:20180201T090000Z +DTSTART:20180201T090000Z +DTEND:20180201T180000Z DESCRIPTION:With balloons\, clowns and stuff\nBring a dog\, bring a frog LOCATION:Party Lane 1A\, 1337 Funtown END:VEVENT