Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Uzbekistan Holidays #81

Merged
merged 5 commits into from
Feb 8, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
tests updated and verified
  • Loading branch information
shoxrux1996 committed Feb 1, 2024
commit 1fe6a14faa838a0e7498ad467cff5b1c93615320

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
[
{
"name": "Yangi yil",
"date": "2024-01-01"
"date": "2022-01-01"
},
{
"name": "Xalqaro xotin-qizlar kuni",
"date": "2024-03-08"
"date": "2022-03-08"
},
{
"name": "Navro'z",
"date": "2024-03-21"
"date": "2022-03-21"
},
{
"name": "Ramazon Hayiti",
"date": "2024-04-10"
"date": "2022-05-02"
},
{
"name": "Xotira va qadrlash kuni",
"date": "2024-05-09"
"date": "2022-05-09"
},
{
"name": "Qurbon Hayiti",
"date": "2024-06-17"
"date": "2022-07-09"
},
{
"name": "Mustaqillik kuni",
"date": "2024-09-01"
"date": "2022-09-01"
},
{
"name": "Ustoz va murabbiylar kuni",
"date": "2024-10-01"
"date": "2022-10-01"
},
{
"name": "Konstitutsiya kuni",
"date": "2024-12-08"
"date": "2022-12-08"
}
]

This file was deleted.

26 changes: 1 addition & 25 deletions tests/Countries/UzbekistanTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,28 +15,4 @@
->not()->toBeEmpty();

expect(formatDates($holidays))->toMatchSnapshot();
})->with([2000, 2006, 2023, 2024, 2033]);

it('can calculate uzbekistan holidays in English', function () {
CarbonImmutable::setTestNow('2024-01-01');

$holidays = Holidays::for(country: 'uz', locale: 'en')->get();

expect($holidays)
->toBeArray()
->not()->toBeEmpty();

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

it('can calculate uzbekistan holidays in Russian', function () {
CarbonImmutable::setTestNow('2024-01-01');

$holidays = Holidays::for(country: 'uz', locale: 'ru')->get();

expect($holidays)
->toBeArray()
->not()->toBeEmpty();

expect(formatDates($holidays))->toMatchSnapshot();
});
})->with([2000, 2006, 2022, 2023]);
Loading