generated from spatie/package-skeleton-php
-
-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
84 additions
and
0 deletions.
There are no files selected for viewing
66 changes: 66 additions & 0 deletions
66
tests/.pest/snapshots/Countries/SlovakiaTest/it_can_calculate_slovak_holidays.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
[ | ||
{ | ||
"name": "De\u0148 vzniku Slovenskej republiky", | ||
"date": "2024-01-01" | ||
}, | ||
{ | ||
"name": "Zjavenie P\u00e1na (Traja kr\u00e1li)", | ||
"date": "2024-01-06" | ||
}, | ||
{ | ||
"name": "Ve\u013ek\u00fd piatok", | ||
"date": "2024-03-29" | ||
}, | ||
{ | ||
"name": "Ve\u013ekono\u010dn\u00fd pondelok", | ||
"date": "2024-04-01" | ||
}, | ||
{ | ||
"name": "Sviatok pr\u00e1ce", | ||
"date": "2024-05-01" | ||
}, | ||
{ | ||
"name": "De\u0148 v\u00ed\u0165azstva nad fa\u0161izmom", | ||
"date": "2024-05-08" | ||
}, | ||
{ | ||
"name": "Sviatok sv\u00e4t\u00e9ho Cyrila a Metoda", | ||
"date": "2024-07-05" | ||
}, | ||
{ | ||
"name": "V\u00fdro\u010die V\u00fdro\u010die Slovensk\u00e9ho n\u00e1rodn\u00e9ho povstania", | ||
"date": "2024-08-29" | ||
}, | ||
{ | ||
"name": "De\u0148 \u00dastavy Slovenskej republiky", | ||
"date": "2024-09-01" | ||
}, | ||
{ | ||
"name": "Sedembolestn\u00e1 Panna M\u00e1ria", | ||
"date": "2024-09-15" | ||
}, | ||
{ | ||
"name": "De\u0148 vzniku samostatn\u00e9ho \u010desko-slovensk\u00e9ho \u0161t\u00e1tu", | ||
"date": "2024-10-28" | ||
}, | ||
{ | ||
"name": "Sviatok v\u0161etk\u00fdch sv\u00e4t\u00fdch", | ||
"date": "2024-11-01" | ||
}, | ||
{ | ||
"name": "De\u0148 boja za slobodu a demokraciu", | ||
"date": "2024-11-17" | ||
}, | ||
{ | ||
"name": "\u0160tedr\u00fd de\u0148", | ||
"date": "2024-12-24" | ||
}, | ||
{ | ||
"name": "Prv\u00fd sviatok viano\u010dn\u00fd", | ||
"date": "2024-12-25" | ||
}, | ||
{ | ||
"name": "Druh\u00fd sviatok viano\u010dn\u00fd", | ||
"date": "2024-12-26" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
namespace Spatie\Holidays\Tests\Countries; | ||
|
||
use Carbon\CarbonImmutable; | ||
use Spatie\Holidays\Holidays; | ||
|
||
it('can calculate slovak holidays', function () { | ||
CarbonImmutable::setTestNowAndTimezone('2024-01-01'); | ||
|
||
$holidays = Holidays::for(country: 'sk')->get(); | ||
|
||
expect($holidays) | ||
->toBeArray() | ||
->not()->toBeEmpty(); | ||
|
||
expect(formatDates($holidays))->toMatchSnapshot(); | ||
}); |