From 087067c9ad91f3363ec58eb3e3ab96dc992551a8 Mon Sep 17 00:00:00 2001 From: Andreas Lemke Date: Tue, 14 Aug 2018 15:29:35 +0200 Subject: [PATCH 1/4] =?UTF-8?q?add=204=20Bundesl=C3=A4nder=20to=20$reforma?= =?UTF-8?q?tionDayStates?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ab 2018 haben 4 zusätzliche Bundesländer den Reformationstag als Feiertag. https://de.wikipedia.org/wiki/Reformationstag#Deutschland --- src/Provider/DE.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Provider/DE.php b/src/Provider/DE.php index 6fae7cf..58e3f5a 100644 --- a/src/Provider/DE.php +++ b/src/Provider/DE.php @@ -50,6 +50,10 @@ public function getHolidaysByYear($year) self::STATE_SN, self::STATE_ST, self::STATE_TH, + self::STATE_SH, + self::STATE_HH, + self::STATE_NI, + self::STATE_HB ); } From 77edeb1141ca2ed18d94865fee1682b20cacc9ab Mon Sep 17 00:00:00 2001 From: Andreas Lemke Date: Tue, 14 Aug 2018 15:30:49 +0200 Subject: [PATCH 2/4] Change Test for Reformationstag for STATE_SH --- test/Provider/DETest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/Provider/DETest.php b/test/Provider/DETest.php index 96c7205..c1c3409 100644 --- a/test/Provider/DETest.php +++ b/test/Provider/DETest.php @@ -35,7 +35,7 @@ public function dateProvider() array('2016-10-31', DE::STATE_BB, array('name' => 'Reformationstag')), array('2017-10-31', DE::STATE_SH, array('name' => 'Reformationstag')), array('2017-10-31', DE::STATE_BB, array('name' => 'Reformationstag')), - array('2018-10-31', DE::STATE_SH, null), + array('2018-10-31', DE::STATE_SH, array('name' => 'Reformationstag')), array('2018-11-21', DE::STATE_BB, null), array('2018-11-21', DE::STATE_SN, array('name' => 'Buß- und Bettag')), array('2018-10-31', DE::STATE_SH, null), From 3339136f1ebf0505677881d2556e10a111314f6c Mon Sep 17 00:00:00 2001 From: Andreas Lemke Date: Tue, 14 Aug 2018 15:51:47 +0200 Subject: [PATCH 3/4] Update DETest.php --- test/Provider/DETest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/Provider/DETest.php b/test/Provider/DETest.php index c1c3409..c1ade5d 100644 --- a/test/Provider/DETest.php +++ b/test/Provider/DETest.php @@ -31,7 +31,7 @@ public function dateProvider() array('2014-06-19', DE::STATE_SH, null), array('2014-11-01', DE::STATE_BW, array('name' => 'Allerheiligen')), array('2014-11-01', DE::STATE_SH, null), - array('2016-10-31', DE::STATE_SH, null), + array('2016-10-31', DE::STATE_SH, array('name' => 'Reformationstag')), array('2016-10-31', DE::STATE_BB, array('name' => 'Reformationstag')), array('2017-10-31', DE::STATE_SH, array('name' => 'Reformationstag')), array('2017-10-31', DE::STATE_BB, array('name' => 'Reformationstag')), From 56a9839e6ba09bdedbd7e6c33c29a7f2e6e78ba2 Mon Sep 17 00:00:00 2001 From: Andreas Lemke Date: Tue, 14 Aug 2018 15:55:46 +0200 Subject: [PATCH 4/4] Update DETest.php --- test/Provider/DETest.php | 1 - 1 file changed, 1 deletion(-) diff --git a/test/Provider/DETest.php b/test/Provider/DETest.php index c1ade5d..286b905 100644 --- a/test/Provider/DETest.php +++ b/test/Provider/DETest.php @@ -38,7 +38,6 @@ public function dateProvider() array('2018-10-31', DE::STATE_SH, array('name' => 'Reformationstag')), array('2018-11-21', DE::STATE_BB, null), array('2018-11-21', DE::STATE_SN, array('name' => 'Buß- und Bettag')), - array('2018-10-31', DE::STATE_SH, null), ); } }