Row
'; } } /** * A list whose rows each hold `$markup`, then a child component. Livewire keys a child from the * loop around it, and takes a `wire:key` written in any template rendered in the row for the row's * key: a component that wrote its own that way would key every row's child alike. */ class KeyedRowsProbe extends Component { public static string $markup = ''; public function render(): string { return ']*\bwire:key="([^"]+)"[^>]*>Row<\/p>/', $html, $children);
expect(substr_count($html, "wire:key=\"{$key}\""))->toBe(2)
->and($children[1])->toHaveCount(2)
->and(array_unique($children[1]))->toHaveCount(2);
})->with([
'menu' => ['