Skip to content

Commit

Permalink
Restore carbon locale when tearing down test
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean committed Feb 28, 2025
1 parent f66bcf0 commit 8b4d2f1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/Modifiers/FormatTranslatedTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ protected function setUp(): void
config()->set('statamic.system.display_timezone', 'Europe/Berlin'); // +1 hour
}

public function tearDown(): void
{
parent::tearDown();

Carbon::setLocale('en');
}

#[Test]
public function it_formats_date()
{
Expand Down

0 comments on commit 8b4d2f1

Please sign in to comment.