Skip to content

Commit

Permalink
Fix LiveComponent tests
Browse files Browse the repository at this point in the history
  • Loading branch information
smnandre committed Nov 10, 2024
1 parent 9a570c5 commit ced6a67
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1872,7 +1872,10 @@ public function getTest(LiveComponentMetadataFactory $metadataFactory): Hydratio
return new HydrationTestCase(
$this->component,
new LiveComponentMetadata(
new ComponentMetadata(['key' => '__testing']),
new ComponentMetadata([
'key' => '__testing',
'mount' => $reflectionClass->hasMethod('mount') ? ['mount'] : [],
]),
$metadataFactory->createPropMetadatas($reflectionClass),
),
$this->inputProps,
Expand Down

0 comments on commit ced6a67

Please sign in to comment.