<?php

namespace Tests\Feature\Livewire;

use App\Livewire\OperatorParksListing;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Livewire\Livewire;
use Tests\TestCase;

class OperatorParksListingTest extends TestCase
{
    use RefreshDatabase;

    /** @test */
    public function component_can_render(): void
    {
        Livewire::test(OperatorParksListing::class)
            ->assertStatus(200)
            ->assertSee('OperatorParksListing');
    }

    /** @test */
    public function component_can_mount_successfully(): void
    {
        Livewire::test(OperatorParksListing::class)
            ->assertStatus(200);
    }

    /** @test */
    public function component_follows_thrillwiki_patterns(): void
    {
        Livewire::test(OperatorParksListing::class)
            ->assertViewIs('livewire.operator-parks-listing');
    }
}