File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
src/Symfony/Bundle/SecurityBundle
Tests/DependencyInjection Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 47
47
<parameter key =" security.validator.user_password.class" >Symfony\Component\Security\Core\Validator\Constraints\UserPasswordValidator</parameter >
48
48
49
49
<parameter key =" security.expression_language.class" >Symfony\Component\Security\Core\Authorization\ExpressionLanguage</parameter >
50
+ <parameter key =" security.role_hierarchy.roles" type =" collection" />
50
51
</parameters >
51
52
52
53
<services >
Original file line number Diff line number Diff line change @@ -115,10 +115,7 @@ public function testDisableRoleHierarchyVoter()
115
115
116
116
$ container ->compile ();
117
117
118
- $ admDefinition = $ container ->getDefinition ('security.access.decision_manager ' );
119
- $ registeredVoters = array_map ('strval ' , $ admDefinition ->getArgument (0 ));
120
-
121
- $ this ->assertNotContains ('security.access.role_hierarchy_voter ' , $ registeredVoters );
118
+ $ this ->assertFalse ($ container ->hasDefinition ('security.access.role_hierarchy_voter ' ));
122
119
}
123
120
124
121
protected function getRawContainer ()
You can’t perform that action at this time.
0 commit comments