You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -90,7 +94,7 @@ private function executeHydrationTestCase(callable $testFactory, ?int $minPhpVer
90
94
91
95
$dehydratedProps = $this->hydrator()->dehydrate(
92
96
$originalComponentWithData,
93
-
newComponentAttributes([]), // not worried about testing these here
97
+
$componentAttributesFactory->create([]), // not worried about testing these here
94
98
$liveMetadata,
95
99
);
96
100
@@ -132,7 +136,7 @@ private function executeHydrationTestCase(callable $testFactory, ?int $minPhpVer
132
136
133
137
$dehydratedProps2 = $this->hydrator()->dehydrate(
134
138
$componentAfterHydration,
135
-
newComponentAttributes([]), // not worried about testing these here
139
+
$componentAttributesFactory->create(),
136
140
$liveMetadata,
137
141
);
138
142
$this->hydrator()->hydrate(
@@ -1449,7 +1453,7 @@ public function __construct()
1449
1453
1450
1454
$dehydratedProps = $this->hydrator()->dehydrate(
1451
1455
$component,
1452
-
newComponentAttributes([]),
1456
+
$this->createComponentAttributes(),
1453
1457
$this->createLiveMetadata($component)
1454
1458
);
1455
1459
@@ -1498,7 +1502,7 @@ public function testInterfaceTypedLivePropCannotBeDehydrated(): void
1498
1502
$this->expectExceptionMessageMatches('/Cannot dehydrate value typed as interface "Symfony\UX\LiveComponent\Tests\Fixtures\Dto\SimpleDtoInterface" on component ');
1499
1503
$this->expectExceptionMessageMatches('/ Change this to a concrete type that can be dehydrated/');
0 commit comments