Skip to content

Commit

Permalink
add specific test for the country
Browse files Browse the repository at this point in the history
  • Loading branch information
Nielsvanpach committed Jan 15, 2024
1 parent 19af134 commit 7e16b45
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"Nieuwjaar": "2023-01-01T15:07:16.000000Z",
"Dag van de Arbeid": "2023-05-01T15:07:16.000000Z",
"Nationale Feestdag": "2023-07-21T15:07:16.000000Z",
"OLV Hemelvaart": "2023-08-15T15:07:16.000000Z",
"Allerheiligen": "2023-11-01T15:07:16.000000Z",
"Wapenstilstand": "2023-11-11T15:07:16.000000Z",
"Kerstmis": "2023-12-25T15:07:16.000000Z",
"Paasmaandag": "2023-04-09T22:00:00.000000Z",
"OH Hemelvaart": "2023-05-17T22:00:00.000000Z",
"Pinkstermaandag": "2023-05-28T22:00:00.000000Z"
}
11 changes: 11 additions & 0 deletions tests/Actions/BelgiumTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

namespace Spatie\Holidays\Tests\Actions;

use Spatie\Holidays\Actions\Belgium;

it('can calculate belgian holidays', function () {
$action = new Belgium();

Check failure on line 8 in tests/Actions/BelgiumTest.php

View workflow job for this annotation

GitHub Actions / phpstan

Instantiated class Spatie\Holidays\Actions\Belgium not found.

expect($action->execute(2023))->toMatchSnapshot();

Check failure on line 10 in tests/Actions/BelgiumTest.php

View workflow job for this annotation

GitHub Actions / phpstan

Call to method execute() on an unknown class Spatie\Holidays\Actions\Belgium.

Check failure on line 10 in tests/Actions/BelgiumTest.php

View workflow job for this annotation

GitHub Actions / phpstan

Unable to resolve the template type TValue in call to function expect
});

0 comments on commit 7e16b45

Please sign in to comment.