Skip to content

Commit 0a923c6

Browse files
Relax tests to unlock change on master
1 parent 5fb8812 commit 0a923c6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Tests/DependencyInjection/AddConstraintValidatorsPassTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,14 @@ public function testThatConstraintValidatorServicesAreProcessed()
3535
$addConstraintValidatorsPass = new AddConstraintValidatorsPass();
3636
$addConstraintValidatorsPass->process($container);
3737

38+
$locator = $container->getDefinition((string) $validatorFactory->getArgument(0));
39+
$this->assertTrue(!$locator->isPublic() || $locator->isPrivate());
3840
$expected = (new Definition(ServiceLocator::class, [[
3941
Validator1::class => new ServiceClosureArgument(new Reference('my_constraint_validator_service1')),
4042
'my_constraint_validator_alias1' => new ServiceClosureArgument(new Reference('my_constraint_validator_service1')),
4143
Validator2::class => new ServiceClosureArgument(new Reference('my_constraint_validator_service2')),
4244
]]))->addTag('container.service_locator')->setPublic(false);
43-
$this->assertEquals($expected, $container->getDefinition((string) $validatorFactory->getArgument(0)));
45+
$this->assertEquals($expected, $locator->setPublic(false));
4446
}
4547

4648
public function testAbstractConstraintValidator()

0 commit comments

Comments
 (0)