Files
fotospiel-app/tests/Unit/DataExportTableTest.php
Codex Agent a3538f6470
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled
tests / ui (push) Has been cancelled
Fix data exports UI and scope format
2026-01-06 12:59:38 +01:00

32 lines
783 B
PHP

<?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);
}
}