Skip to content

Commit b808065

Browse files
Fix tests
1 parent 29db411 commit b808065

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Tests/Extension/AbstractLayoutTestCase.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ protected function getExtensions(): array
5858

5959
protected function tearDown(): void
6060
{
61-
\Locale::setDefault($this->defaultLocale);
61+
if (isset($this->defaultLocale)) {
62+
\Locale::setDefault($this->defaultLocale);
63+
}
6264
}
6365

6466
protected function assertWidgetMatchesXpath(FormView $view, array $vars, $xpath)

0 commit comments

Comments
 (0)