Skip to content

Commit 828d26a

Browse files
Merge branch '3.4' into 4.4
* 3.4: Relax tests to unlock change on master
2 parents d59c2a3 + 3772da1 commit 828d26a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Tests/DependencyInjection/FormPassTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,14 @@ public function testAddTaggedTypes()
5858

5959
$extDefinition = $container->getDefinition('form.extension');
6060

61+
$locator = $extDefinition->getArgument(0);
62+
$this->assertTrue(!$locator->isPublic() || $locator->isPrivate());
6163
$this->assertEquals(
6264
(new Definition(ServiceLocator::class, [[
6365
__CLASS__.'_Type1' => new ServiceClosureArgument(new Reference('my.type1')),
6466
__CLASS__.'_Type2' => new ServiceClosureArgument(new Reference('my.type2')),
6567
]]))->addTag('container.service_locator')->setPublic(false),
66-
$extDefinition->getArgument(0)
68+
$locator->setPublic(false)
6769
);
6870
}
6971

0 commit comments

Comments
 (0)