11
11
12
12
namespace Symfony \UX \LiveComponent \Tests \Integration \Hydration ;
13
13
14
-
15
14
use Doctrine \ORM \EntityManagerInterface ;
16
15
use Symfony \Bundle \FrameworkBundle \Test \KernelTestCase ;
17
16
use Symfony \UX \LiveComponent \Hydration \DoctrineEntityHydrationExtension ;
@@ -60,9 +59,9 @@ public function testSupportInterface(): void
60
59
/** @var DoctrineEntityHydrationExtension $extension */
61
60
$ extension = self ::getContainer ()->get ('ux.live_component.doctrine_entity_hydration_extension ' );
62
61
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 ' );
66
65
}
67
66
68
67
public function testHydrationFromInterface (): void
@@ -81,7 +80,7 @@ public function testHydrationFromInterface(): void
81
80
82
81
$ entityFromDehydratation = $ extension ->hydrate ($ dehydratedData , AliasedEntityInterface::class);
83
82
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 ' );
86
85
}
87
86
}
0 commit comments