Fix data exports UI and scope format
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled
tests / ui (push) Has been cancelled

This commit is contained in:
Codex Agent
2026-01-06 12:59:38 +01:00
parent e82a10cb8b
commit a3538f6470
5 changed files with 96 additions and 4 deletions

View File

@@ -0,0 +1,31 @@
<?php
namespace Tests\Unit;
use App\Enums\DataExportScope;
use App\Filament\Resources\DataExportResource\Tables\DataExportTable;
use Tests\TestCase;
class DataExportTableTest extends TestCase
{
public function test_formats_scope_from_enum(): void
{
$label = DataExportTable::formatScope(DataExportScope::TENANT);
$this->assertSame(__('admin.data_exports.scope.tenant'), $label);
}
public function test_formats_scope_from_string(): void
{
$label = DataExportTable::formatScope('event');
$this->assertSame(__('admin.data_exports.scope.event'), $label);
}
public function test_formats_scope_from_null(): void
{
$label = DataExportTable::formatScope(null);
$this->assertSame('—', $label);
}
}