Files
Jeremy cec85b4ca3 feat: tabbed and flattened settings page
Organise the app settings page into tabs (general, scraping,
notifications, AI) and flatten sections inside the tabs so they render
as headings rather than nested cards, preserving HtmlString descriptions.
2026-06-09 15:07:40 +10:00

26 lines
744 B
PHP

<?php
namespace Tests\Feature\Filament;
use App\Filament\Pages\AppSettingsPage;
use Filament\Forms\Components\Group;
use Filament\Forms\Components\Section;
use Tests\TestCase;
class FormHelperTraitTest extends TestCase
{
public function test_make_settings_section_returns_a_group_when_flat(): void
{
$component = AppSettingsPage::makeSettingsSection('Example', 'root', 'sub', [], 'desc', flat: true);
$this->assertInstanceOf(Group::class, $component);
}
public function test_make_settings_section_returns_a_section_by_default(): void
{
$component = AppSettingsPage::makeSettingsSection('Example', 'root', 'sub', [], 'desc');
$this->assertInstanceOf(Section::class, $component);
}
}