Skip to content

Commit ced6a67

Browse files
committed
Fix LiveComponent tests
1 parent 9a570c5 commit ced6a67

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/LiveComponent/tests/Integration/LiveComponentHydratorTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1872,7 +1872,10 @@ public function getTest(LiveComponentMetadataFactory $metadataFactory): Hydratio
18721872
return new HydrationTestCase(
18731873
$this->component,
18741874
new LiveComponentMetadata(
1875-
new ComponentMetadata(['key' => '__testing']),
1875+
new ComponentMetadata([
1876+
'key' => '__testing',
1877+
'mount' => $reflectionClass->hasMethod('mount') ? ['mount'] : [],
1878+
]),
18761879
$metadataFactory->createPropMetadatas($reflectionClass),
18771880
),
18781881
$this->inputProps,

0 commit comments

Comments
 (0)