3
0
mirror of https://github.com/snipe/snipe-it.git synced 2026-08-18 11:15:42 +00:00
Files
snipe-it/tests/Feature/Livewire/AlertMenuTest.php

27 lines
655 B
PHP

<?php
namespace Tests\Feature\Livewire;
use App\Livewire\AlertMenu;
use App\Models\User;
use Livewire\Livewire;
use Tests\TestCase;
class AlertMenuTest extends TestCase
{
public function test_the_component_renders(): void
{
Livewire::actingAs(User::factory()->superuser()->create())
->test(AlertMenu::class)
->assertStatus(200);
}
public function test_placeholder_reserves_bell_footprint(): void
{
$placeholder = (new AlertMenu)->placeholder();
$this->assertStringContainsString('dropdown', $placeholder);
$this->assertStringContainsString('fa-bell', $placeholder);
}
}