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')) {