From 051781d2bfd3567491350404548fbd247baaa615 Mon Sep 17 00:00:00 2001 From: soyuka Date: Fri, 11 Sep 2026 21:18:17 +0200 Subject: [PATCH] test(state): skip the uri variable test before schema setup setUp() calls recreateSchema(), which rewrites \Entity\ to \Document\ under ODM, but Base64UriVariableDummy has no ODM counterpart. Both tests already meant to skip on mongodb; the guards just sat in the test bodies, which run after setUp() has failed. Claude-Session: https://claude.ai/code/session_01FmRmcWx8J7PS374edGFBdE --- .../UriVariableParameterProviderTest.php | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/tests/Functional/Parameters/UriVariableParameterProviderTest.php b/tests/Functional/Parameters/UriVariableParameterProviderTest.php index b7307a9cc2..b1d019461c 100644 --- a/tests/Functional/Parameters/UriVariableParameterProviderTest.php +++ b/tests/Functional/Parameters/UriVariableParameterProviderTest.php @@ -37,6 +37,10 @@ public static function getResources(): array protected function setUp(): void { + if ('mongodb' === static::getContainer()->getParameter('kernel.environment')) { + $this->markTestSkipped(); + } + $this->recreateSchema([Base64UriVariableDummy::class, Dummy::class]); } @@ -45,11 +49,6 @@ protected function setUp(): void */ public function testLinkParameterProviderDecodesUriVariableBeforeQuery(): void { - $container = static::getContainer(); - if ('mongodb' === $container->getParameter('kernel.environment')) { - $this->markTestSkipped(); - } - $manager = $this->getManager(); $dummy = new Base64UriVariableDummy(); $dummy->name = 'Blip'; @@ -63,11 +62,6 @@ public function testLinkParameterProviderDecodesUriVariableBeforeQuery(): void public function testReadLinkParameterProviderWritesResolvedResourceWhenOptedIn(): void { - $container = static::getContainer(); - if ('mongodb' === $container->getParameter('kernel.environment')) { - $this->markTestSkipped(); - } - $manager = $this->getManager(); $dummy = new Dummy(); $dummy->setName('hi');