mirror of
https://github.com/pacnpal/thrillwiki_laravel.git
synced 2025-12-20 08:51:11 -05:00
Add Livewire components for parks, rides, and manufacturers
- Implemented ParksLocationSearch component with loading state and refresh functionality. - Created ParksMapView component with similar structure and functionality. - Added RegionalParksListing component for displaying regional parks. - Developed RidesListingUniversal component for universal listing integration. - Established ManufacturersListing view with navigation and Livewire integration. - Added feature tests for various Livewire components including OperatorHierarchyView, OperatorParksListing, OperatorPortfolioCard, OperatorsListing, OperatorsRoleFilter, ParksListing, ParksLocationSearch, ParksMapView, and RegionalParksListing to ensure proper rendering and adherence to patterns.
This commit is contained in:
35
tests/Feature/Livewire/ParksLocationSearchTest.php
Normal file
35
tests/Feature/Livewire/ParksLocationSearchTest.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Feature\Livewire;
|
||||
|
||||
use App\Livewire\ParksLocationSearch;
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
use Livewire\Livewire;
|
||||
use Tests\TestCase;
|
||||
|
||||
class ParksLocationSearchTest extends TestCase
|
||||
{
|
||||
use RefreshDatabase;
|
||||
|
||||
/** @test */
|
||||
public function component_can_render(): void
|
||||
{
|
||||
Livewire::test(ParksLocationSearch::class)
|
||||
->assertStatus(200)
|
||||
->assertSee('ParksLocationSearch');
|
||||
}
|
||||
|
||||
/** @test */
|
||||
public function component_can_mount_successfully(): void
|
||||
{
|
||||
Livewire::test(ParksLocationSearch::class)
|
||||
->assertStatus(200);
|
||||
}
|
||||
|
||||
/** @test */
|
||||
public function component_follows_thrillwiki_patterns(): void
|
||||
{
|
||||
Livewire::test(ParksLocationSearch::class)
|
||||
->assertViewIs('livewire.parks-location-search');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user