From a9b61ef01fe0d918b8cd485bbdbd05ddf7f36084 Mon Sep 17 00:00:00 2001 From: 3x1io <3x1io@users.noreply.github.com> Date: Fri, 8 Nov 2024 18:59:15 +0000 Subject: [PATCH] Format Code --- src/Filament/Resources/TranslationResource.php | 2 +- tests/src/TestCase.php | 3 +-- tests/src/TranslationResourceTest.php | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Filament/Resources/TranslationResource.php b/src/Filament/Resources/TranslationResource.php index bf81a88..261f181 100644 --- a/src/Filament/Resources/TranslationResource.php +++ b/src/Filament/Resources/TranslationResource.php @@ -69,7 +69,7 @@ public static function getPages(): array return [ 'index' => \TomatoPHP\FilamentTranslations\Filament\Resources\TranslationResource\Pages\ListTranslations::route('/'), 'create' => \TomatoPHP\FilamentTranslations\Filament\Resources\TranslationResource\Pages\CreateTranslation::route('/create'), - 'edit' => \TomatoPHP\FilamentTranslations\Filament\Resources\TranslationResource\Pages\EditTranslation::route('/{record}/edit') + 'edit' => \TomatoPHP\FilamentTranslations\Filament\Resources\TranslationResource\Pages\EditTranslation::route('/{record}/edit'), ]; } } diff --git a/tests/src/TestCase.php b/tests/src/TestCase.php index a2cdd09..d8dc288 100644 --- a/tests/src/TestCase.php +++ b/tests/src/TestCase.php @@ -23,8 +23,8 @@ abstract class TestCase extends BaseTestCase { - use WithWorkbench; use RefreshDatabase; + use WithWorkbench; protected function defineDatabaseMigrations(): void { @@ -60,7 +60,6 @@ public function getEnvironmentSetUp($app): void $app['config']->set('auth.guards.testing.provider', 'testing'); $app['config']->set('auth.providers.testing.driver', 'eloquent'); $app['config']->set('auth.providers.testing.model', User::class); - $app['config']->set('filament-translations.paths', [ __DIR__ . '/../../vendor/orchestra/testbench-core/laravel', diff --git a/tests/src/TranslationResourceTest.php b/tests/src/TranslationResourceTest.php index ff66467..81df674 100644 --- a/tests/src/TranslationResourceTest.php +++ b/tests/src/TranslationResourceTest.php @@ -44,7 +44,6 @@ livewire(\TomatoPHP\FilamentTranslations\Filament\Resources\TranslationResource\Pages\ListTranslations::class)->assertSuccessful(); }); - it('can render translation create page', function () { if (filament('filament-translations')->allowCreate) { if (config('filament-translations.modal')) {