generated from spatie/package-skeleton-php
-
-
Notifications
You must be signed in to change notification settings - Fork 199
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
72 additions
and
0 deletions.
There are no files selected for viewing
54 changes: 54 additions & 0 deletions
54
tests/.pest/snapshots/Countries/CzechiaTest/it_can_calculate_czech_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,54 @@ | ||
[ | ||
{ | ||
"name": "Den obnovy samostatn\u00e9ho \u010desk\u00e9ho st\u00e1tu", | ||
"date": "2024-01-01" | ||
}, | ||
{ | ||
"name": "Velk\u00fd p\u00e1tek", | ||
"date": "2024-03-29" | ||
}, | ||
{ | ||
"name": "Velikono\u010dn\u00ed pond\u011bl\u00ed", | ||
"date": "2024-04-01" | ||
}, | ||
{ | ||
"name": "Sv\u00e1tek pr\u00e1ce", | ||
"date": "2024-05-01" | ||
}, | ||
{ | ||
"name": "Den v\u00edt\u011bzstv\u00ed", | ||
"date": "2024-05-08" | ||
}, | ||
{ | ||
"name": "Den slovansk\u00fdch v\u011brozv\u011bst\u016f Cyrila a Metod\u011bje", | ||
"date": "2024-07-05" | ||
}, | ||
{ | ||
"name": "Den up\u00e1len\u00ed mistra Jana Husa", | ||
"date": "2024-07-06" | ||
}, | ||
{ | ||
"name": "Den \u010desk\u00e9 st\u00e1tnosti", | ||
"date": "2024-09-28" | ||
}, | ||
{ | ||
"name": "Den vzniku samostatn\u00e9ho \u010deskoslovensk\u00e9ho st\u00e1tu", | ||
"date": "2024-10-28" | ||
}, | ||
{ | ||
"name": "Den boje za svobodu a demokracii a Mezin\u00e1rodn\u00ed den studentstva", | ||
"date": "2024-11-17" | ||
}, | ||
{ | ||
"name": "\u0160t\u011bdr\u00fd den", | ||
"date": "2024-12-24" | ||
}, | ||
{ | ||
"name": "1. sv\u00e1tek v\u00e1no\u010dn\u00ed", | ||
"date": "2024-12-25" | ||
}, | ||
{ | ||
"name": "2. sv\u00e1tek v\u00e1no\u010dn\u00ed", | ||
"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 czech holidays', function () { | ||
CarbonImmutable::setTestNowAndTimezone('2024-01-01'); | ||
|
||
$holidays = Holidays::for(country: 'cz')->get(); | ||
|
||
expect($holidays) | ||
->toBeArray() | ||
->not()->toBeEmpty(); | ||
|
||
expect(formatDates($holidays))->toMatchSnapshot(); | ||
}); |