diff --git a/src/LiveComponent/tests/Integration/LiveComponentHydratorTest.php b/src/LiveComponent/tests/Integration/LiveComponentHydratorTest.php index 511a5580f72..66ea8cd24d6 100644 --- a/src/LiveComponent/tests/Integration/LiveComponentHydratorTest.php +++ b/src/LiveComponent/tests/Integration/LiveComponentHydratorTest.php @@ -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,