Skip to content

Commit 332c8d1

Browse files
committed
Fix tests
1 parent 8e4d31e commit 332c8d1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/TestCase.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ protected function setUp(): void
2020
protected function getPackageProviders($app)
2121
{
2222
return [
23+
\Mcamara\LaravelLocalization\LaravelLocalizationServiceProvider::class,
2324
FilamentFlexibleContentBlockPagesServiceProvider::class,
2425
];
2526
}
@@ -28,6 +29,12 @@ public function getEnvironmentSetUp($app)
2829
{
2930
config()->set('database.default', 'testing');
3031

32+
// Configure Laravel Localization for tests
33+
config()->set('laravellocalization.supportedLocales', [
34+
'en' => ['name' => 'English', 'script' => 'Latn', 'native' => 'English', 'regional' => 'en_GB'],
35+
'es' => ['name' => 'Spanish', 'script' => 'Latn', 'native' => 'español', 'regional' => 'es_ES'],
36+
]);
37+
3138
/*
3239
foreach (\Illuminate\Support\Facades\File::allFiles(__DIR__ . '/database/migrations') as $migration) {
3340
(include $migration->getRealPath())->up();

0 commit comments

Comments
 (0)