File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Tests/DependencyInjection Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -35,12 +35,14 @@ public function testThatConstraintValidatorServicesAreProcessed()
35
35
$ addConstraintValidatorsPass = new AddConstraintValidatorsPass ();
36
36
$ addConstraintValidatorsPass ->process ($ container );
37
37
38
+ $ locator = $ container ->getDefinition ((string ) $ validatorFactory ->getArgument (0 ));
39
+ $ this ->assertTrue (!$ locator ->isPublic () || $ locator ->isPrivate ());
38
40
$ expected = (new Definition (ServiceLocator::class, [[
39
41
Validator1::class => new ServiceClosureArgument (new Reference ('my_constraint_validator_service1 ' )),
40
42
'my_constraint_validator_alias1 ' => new ServiceClosureArgument (new Reference ('my_constraint_validator_service1 ' )),
41
43
Validator2::class => new ServiceClosureArgument (new Reference ('my_constraint_validator_service2 ' )),
42
44
]]))->addTag ('container.service_locator ' )->setPublic (false );
43
- $ this ->assertEquals ($ expected , $ container -> getDefinition (( string ) $ validatorFactory -> getArgument ( 0 ) ));
45
+ $ this ->assertEquals ($ expected , $ locator -> setPublic ( false ));
44
46
}
45
47
46
48
public function testAbstractConstraintValidator ()
You can’t perform that action at this time.
0 commit comments