@@ -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();
|
||||
});
|
||||
Reference in New Issue
Block a user