Skip to content

Commit

Permalink
Merge branch 'master' of github.com:tomatophp/filament-translations
Browse files Browse the repository at this point in the history
  • Loading branch information
3x1io committed Nov 8, 2024
2 parents 33b96a6 + a9b61ef commit 6fd68d6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Filament/Resources/TranslationResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
];
}
}
Expand Down
3 changes: 1 addition & 2 deletions tests/src/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@

abstract class TestCase extends BaseTestCase
{
use WithWorkbench;
use RefreshDatabase;
use WithWorkbench;

protected function defineDatabaseMigrations(): void
{
Expand Down Expand Up @@ -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',
Expand Down
1 change: 0 additions & 1 deletion tests/src/TranslationResourceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')) {
Expand Down

0 comments on commit 6fd68d6

Please sign in to comment.