<?php

namespace Tests\Feature\Livewire;

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

class ParkRidesListingTest extends TestCase
{
    use RefreshDatabase;

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

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

    /** @test */
    public function component_follows_thrillwiki_patterns(): void
    {
        Livewire::test(ParkRidesListing::class)
            ->assertViewIs('livewire.park-rides-listing');
    }
}