Skip to content

Commit 30d0e90

Browse files
committed
minor #2066 [Site] fix foundry deprecation (kbond)
This PR was merged into the 2.x branch. Discussion ---------- [Site] fix foundry deprecation | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | Issues | no | License | MIT Commits ------- e0f789a [Site] fix foundry deprecation
2 parents 90c390b + e0f789a commit 30d0e90

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ux.symfony.com/tests/Functional/LiveComponentDemosTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
use Zenstruck\Foundry\Test\Factories;
2020
use Zenstruck\Foundry\Test\ResetDatabase;
2121

22-
use function Zenstruck\Foundry\create;
22+
use function Zenstruck\Foundry\Persistence\persist_proxy;
2323

2424
class LiveComponentDemosTest extends KernelTestCase
2525
{
@@ -32,7 +32,7 @@ class LiveComponentDemosTest extends KernelTestCase
3232
*/
3333
public function setupEntities(): void
3434
{
35-
create(Food::class, ['name' => 'Pizza', 'votes' => 10]);
35+
persist_proxy(Food::class, ['name' => 'Pizza', 'votes' => 10]);
3636
}
3737

3838
/**

0 commit comments

Comments
 (0)