We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d71e405 commit 3772da1Copy full SHA for 3772da1
Tests/DependencyInjection/FormPassTest.php
@@ -57,12 +57,14 @@ public function testAddTaggedTypes()
57
58
$extDefinition = $container->getDefinition('form.extension');
59
60
+ $locator = $extDefinition->getArgument(0);
61
+ $this->assertTrue(!$locator->isPublic() || $locator->isPrivate());
62
$this->assertEquals(
63
(new Definition(ServiceLocator::class, [[
64
__CLASS__.'_Type1' => new ServiceClosureArgument(new Reference('my.type1')),
65
__CLASS__.'_Type2' => new ServiceClosureArgument(new Reference('my.type2')),
66
]]))->addTag('container.service_locator')->setPublic(false),
- $extDefinition->getArgument(0)
67
+ $locator->setPublic(false)
68
);
69
}
70
0 commit comments