mirror of
https://github.com/pacnpal/thrillwiki_laravel.git
synced 2025-12-20 09:51:10 -05:00
- Marked Rides Listing Components Generation as completed with detailed results. - Implemented search/filter logic in RidesListing component for Django parity. - Created ParkRidesListing, RidesFilters, and RidesSearchSuggestions components with caching and pagination. - Developed corresponding Blade views for each component. - Added comprehensive tests for ParkRidesListing, RidesListing, and RidesSearchSuggestions components to ensure functionality and adherence to patterns.
35 lines
823 B
PHP
35 lines
823 B
PHP
<?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');
|
|
}
|
|
} |