Skip to content

Commit

Permalink
Create PanamaTest.php
Browse files Browse the repository at this point in the history
Add test file
  • Loading branch information
nessimabadi authored Jan 18, 2024
1 parent 9ecd585 commit f6f2b44
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/Countries/PanamaTest.php
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 panama holidays', function () {
CarbonImmutable::setTestNowAndTimezone('2024-01-01');

$holidays = Holidays::for(country: 'pa')->get();

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

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

0 comments on commit f6f2b44

Please sign in to comment.