1111
1212namespace Symfony \UX \LiveComponent \Tests \Integration \Hydration ;
1313
14-
1514use Doctrine \ORM \EntityManagerInterface ;
1615use Symfony \Bundle \FrameworkBundle \Test \KernelTestCase ;
1716use Symfony \UX \LiveComponent \Hydration \DoctrineEntityHydrationExtension ;
@@ -60,9 +59,9 @@ public function testSupportInterface(): void
6059 /** @var DoctrineEntityHydrationExtension $extension */
6160 $ extension = self ::getContainer ()->get ('ux.live_component.doctrine_entity_hydration_extension ' );
6261
63- self ::assertTrue ($ extension ->supports (AliasedEntityInterface::class),'AliasedEntityInterface should be supported ' );
64- self ::assertTrue ($ extension ->supports (AliasedEntity::class),'AliasedEntity should be supported ' );
65- self ::assertFalse ($ extension ->supports ('UnknownClass ' ),'UnknownClass should not be supported ' );
62+ self ::assertTrue ($ extension ->supports (AliasedEntityInterface::class), 'AliasedEntityInterface should be supported ' );
63+ self ::assertTrue ($ extension ->supports (AliasedEntity::class), 'AliasedEntity should be supported ' );
64+ self ::assertFalse ($ extension ->supports ('UnknownClass ' ), 'UnknownClass should not be supported ' );
6665 }
6766
6867 public function testHydrationFromInterface (): void
@@ -81,7 +80,7 @@ public function testHydrationFromInterface(): void
8180
8281 $ entityFromDehydratation = $ extension ->hydrate ($ dehydratedData , AliasedEntityInterface::class);
8382
84- self ::assertSame ($ existingEntity , $ entityFromDehydratation ,'instance should be the same ' );
85- self ::assertNull ($ extension ->hydrate (null , AliasedEntityInterface::class),'should return null if null is passed ' );
83+ self ::assertSame ($ existingEntity , $ entityFromDehydratation , 'instance should be the same ' );
84+ self ::assertNull ($ extension ->hydrate (null , AliasedEntityInterface::class), 'should return null if null is passed ' );
8685 }
8786}
0 commit comments