From 2c4ad1c4492e7657f36077778e5b4c2ad7228cd4 Mon Sep 17 00:00:00 2001 From: Martin Welte Date: Wed, 17 Jan 2024 20:29:28 +0100 Subject: [PATCH] test: add liechtenstein test --- ..._can_calculate_liechtenstein_holidays.snap | 54 +++++++++++++++++++ tests/Countries/LiechtensteinTest.php | 18 +++++++ 2 files changed, 72 insertions(+) create mode 100644 tests/.pest/snapshots/Countries/LiechtensteinTest/it_can_calculate_liechtenstein_holidays.snap create mode 100644 tests/Countries/LiechtensteinTest.php diff --git a/tests/.pest/snapshots/Countries/LiechtensteinTest/it_can_calculate_liechtenstein_holidays.snap b/tests/.pest/snapshots/Countries/LiechtensteinTest/it_can_calculate_liechtenstein_holidays.snap new file mode 100644 index 000000000..15498d19a --- /dev/null +++ b/tests/.pest/snapshots/Countries/LiechtensteinTest/it_can_calculate_liechtenstein_holidays.snap @@ -0,0 +1,54 @@ +[ + { + "name": "Neujahr", + "date": "2024-01-01" + }, + { + "name": "Heilige Drei K\u00f6nige", + "date": "2024-01-06" + }, + { + "name": "Ostermontag", + "date": "2024-04-01" + }, + { + "name": "Tag der Arbeit", + "date": "2024-05-01" + }, + { + "name": "Auffahrt", + "date": "2024-05-09" + }, + { + "name": "Pfingstmontag", + "date": "2024-05-20" + }, + { + "name": "Fronleichnam", + "date": "2024-05-30" + }, + { + "name": "Staatsfeiertag \/ Mari\u00e4 Himmelfahrt", + "date": "2024-08-15" + }, + { + "name": "Mari\u00e4 Geburt", + "date": "2024-09-08" + }, + { + "name": "Allerheiligen", + "date": "2024-11-01" + }, + { + "name": "Mari\u00e4 Empf\u00e4ngnis", + "date": "2024-12-08" + }, + { + "name": "Weihnachten", + "date": "2024-12-25" + }, + { + "name": "Stephanstag", + "date": "2024-12-26" + } +] \ No newline at end of file diff --git a/tests/Countries/LiechtensteinTest.php b/tests/Countries/LiechtensteinTest.php new file mode 100644 index 000000000..00b62a5c6 --- /dev/null +++ b/tests/Countries/LiechtensteinTest.php @@ -0,0 +1,18 @@ +get(); + + expect($holidays) + ->toBeArray() + ->not()->toBeEmpty(); + + expect(formatDates($holidays))->toMatchSnapshot(); +});