Initial Commit
tests / ci (push) Canceled after 0s

This commit is contained in:
Mark Gregory
2026-11-11 16:11:21 +00:00
parent 0627265192
commit 65d58f19dc
2 changed files with 51 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
<?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();
});