Skip to content

Commit

Permalink
add tests for Hungary
Browse files Browse the repository at this point in the history
  • Loading branch information
xHeaven committed Jan 17, 2024
1 parent 7f29660 commit 9bb575f
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
[
{
"name": "\u00daj\u00e9v",
"date": "01-01-2024"
},
{
"name": "1848-as forradalom \u00e9vfordul\u00f3ja",
"date": "15-03-2024"
},
{
"name": "Nagyp\u00e9ntek",
"date": "29-03-2024"
},
{
"name": "H\u00fasv\u00e9th\u00e9tf\u0151",
"date": "01-04-2024"
},
{
"name": "A munka \u00fcnnepe",
"date": "01-05-2024"
},
{
"name": "P\u00fcnk\u00f6sdh\u00e9tf\u0151",
"date": "20-05-2024"
},
{
"name": "\u00c1llamalap\u00edt\u00e1s \u00fcnnepe",
"date": "20-08-2024"
},
{
"name": "1956-os forradalom \u00e9vfordul\u00f3ja",
"date": "23-10-2024"
},
{
"name": "Mindenszentek",
"date": "01-11-2024"
},
{
"name": "Kar\u00e1csony",
"date": "25-12-2024"
},
{
"name": "Kar\u00e1csony m\u00e1snapja",
"date": "26-12-2024"
}
]
14 changes: 14 additions & 0 deletions tests/Countries/HungaryTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

namespace Spatie\Holidays\Tests\Countries;

use Carbon\CarbonImmutable;
use Spatie\Holidays\Holidays;

it('can calculate hungarian holidays', function () {
CarbonImmutable::setTestNowAndTimezone('2024-01-01');

$holidays = Holidays::get(country: 'hu');

expect($holidays)->toMatchSnapshot();
});

0 comments on commit 9bb575f

Please sign in to comment.