'Test Customer', 'email' => 'test@example.com']; $vehicle = (object) [ 'year' => '2023', 'make' => 'Toyota', 'model' => 'Corolla', 'license_plate' => 'ABC-123', 'vin' => 'VIN123', 'mileage' => 10000, ]; $jobCard = (object) [ 'id' => 123, 'status' => 'pending', 'customer' => $customer, 'vehicle' => $vehicle, 'estimates' => \Illuminate\Support\Collection::make([]), 'serviceAdvisor' => null, 'description' => null, ]; $html = View::make('livewire.customer-portal.job-status', compact('jobCard'))->render(); $this->assertStringContainsString('Customer Portal', $html); $this->assertStringContainsString((string) $jobCard->id, $html); } }