Skip to content

Commit 3772da1

Browse files
Relax tests to unlock change on master
1 parent d71e405 commit 3772da1

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
@@ -57,12 +57,14 @@ public function testAddTaggedTypes()
5757

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

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

0 commit comments

Comments
 (0)