<?php

use App\Providers\Filament\AdminPanelProvider;
use App\Providers\Filament\SystemPanelProvider;

it('keeps the platform health and admin login routes reachable', function () {
    $this->get('/up')->assertSuccessful();
    $this->get('/admin/login')->assertSuccessful();
});

it('keeps panel providers registered from apps/platform/bootstrap/providers.php', function () {
    $providers = require base_path('bootstrap/providers.php');

    expect($providers)
        ->toContain(AdminPanelProvider::class)
    ->not->toContain('App\\Providers\\Filament\\TenantPanelProvider')
        ->toContain(SystemPanelProvider::class);
});
