Files
ad_testbed/tests/Feature/StylistIntegrationTest.php
T
Mark Gregory 65d58f19dc
tests / ci (push) Canceled after 0s
Initial Commit
2026-11-11 16:11:21 +00:00

33 lines
926 B
PHP

<?php
use App\Models\User;
use Illuminate\Support\Facades\Blade;
use Illuminate\Support\Facades\View;
it('resolves backend theme views', function () {
expect(View::exists('dashboard'))->toBeTrue()
->and(View::exists('livewire.settings.security'))->toBeTrue()
->and(View::exists('livewire.settings.profile'))->toBeTrue();
});
it('registers the custom backend Flux icons', function () {
$html = Blade::render(
'<flux:icon.folder-git-2 />'
);
expect($html)->toContain('<svg');
});
it('renders the authenticated dashboard', function () {
$this->actingAs(User::factory()->create())
->get(route('dashboard'))
->assertOk();
});
it('renders the authenticated security settings', function () {
$this->actingAs(User::factory()->create())
->withSession(['auth.password_confirmed_at' => time()])
->get(route('security.edit'))
->assertOk();
});