@@ -77,34 +77,34 @@ public function getStrategyTests()
77
77
{
78
78
return array (
79
79
// affirmative
80
- array (' affirmative ' , $ this ->getVoters (1 , 0 , 0 ), false , true , true ),
81
- array (' affirmative ' , $ this ->getVoters (1 , 2 , 0 ), false , true , true ),
82
- array (' affirmative ' , $ this ->getVoters (0 , 1 , 0 ), false , true , false ),
83
- array (' affirmative ' , $ this ->getVoters (0 , 0 , 1 ), false , true , false ),
84
- array (' affirmative ' , $ this ->getVoters (0 , 0 , 1 ), true , true , true ),
80
+ array (AccessDecisionManager:: STRATEGY_AFFIRMATIVE , $ this ->getVoters (1 , 0 , 0 ), false , true , true ),
81
+ array (AccessDecisionManager:: STRATEGY_AFFIRMATIVE , $ this ->getVoters (1 , 2 , 0 ), false , true , true ),
82
+ array (AccessDecisionManager:: STRATEGY_AFFIRMATIVE , $ this ->getVoters (0 , 1 , 0 ), false , true , false ),
83
+ array (AccessDecisionManager:: STRATEGY_AFFIRMATIVE , $ this ->getVoters (0 , 0 , 1 ), false , true , false ),
84
+ array (AccessDecisionManager:: STRATEGY_AFFIRMATIVE , $ this ->getVoters (0 , 0 , 1 ), true , true , true ),
85
85
86
86
// consensus
87
- array (' consensus ' , $ this ->getVoters (1 , 0 , 0 ), false , true , true ),
88
- array (' consensus ' , $ this ->getVoters (1 , 2 , 0 ), false , true , false ),
89
- array (' consensus ' , $ this ->getVoters (2 , 1 , 0 ), false , true , true ),
87
+ array (AccessDecisionManager:: STRATEGY_CONSENSUS , $ this ->getVoters (1 , 0 , 0 ), false , true , true ),
88
+ array (AccessDecisionManager:: STRATEGY_CONSENSUS , $ this ->getVoters (1 , 2 , 0 ), false , true , false ),
89
+ array (AccessDecisionManager:: STRATEGY_CONSENSUS , $ this ->getVoters (2 , 1 , 0 ), false , true , true ),
90
90
91
- array (' consensus ' , $ this ->getVoters (0 , 0 , 1 ), false , true , false ),
91
+ array (AccessDecisionManager:: STRATEGY_CONSENSUS , $ this ->getVoters (0 , 0 , 1 ), false , true , false ),
92
92
93
- array (' consensus ' , $ this ->getVoters (0 , 0 , 1 ), true , true , true ),
93
+ array (AccessDecisionManager:: STRATEGY_CONSENSUS , $ this ->getVoters (0 , 0 , 1 ), true , true , true ),
94
94
95
- array (' consensus ' , $ this ->getVoters (2 , 2 , 0 ), false , true , true ),
96
- array (' consensus ' , $ this ->getVoters (2 , 2 , 1 ), false , true , true ),
95
+ array (AccessDecisionManager:: STRATEGY_CONSENSUS , $ this ->getVoters (2 , 2 , 0 ), false , true , true ),
96
+ array (AccessDecisionManager:: STRATEGY_CONSENSUS , $ this ->getVoters (2 , 2 , 1 ), false , true , true ),
97
97
98
- array (' consensus ' , $ this ->getVoters (2 , 2 , 0 ), false , false , false ),
99
- array (' consensus ' , $ this ->getVoters (2 , 2 , 1 ), false , false , false ),
98
+ array (AccessDecisionManager:: STRATEGY_CONSENSUS , $ this ->getVoters (2 , 2 , 0 ), false , false , false ),
99
+ array (AccessDecisionManager:: STRATEGY_CONSENSUS , $ this ->getVoters (2 , 2 , 1 ), false , false , false ),
100
100
101
101
// unanimous
102
- array (' unanimous ' , $ this ->getVoters (1 , 0 , 0 ), false , true , true ),
103
- array (' unanimous ' , $ this ->getVoters (1 , 0 , 1 ), false , true , true ),
104
- array (' unanimous ' , $ this ->getVoters (1 , 1 , 0 ), false , true , false ),
102
+ array (AccessDecisionManager:: STRATEGY_UNANIMOUS , $ this ->getVoters (1 , 0 , 0 ), false , true , true ),
103
+ array (AccessDecisionManager:: STRATEGY_UNANIMOUS , $ this ->getVoters (1 , 0 , 1 ), false , true , true ),
104
+ array (AccessDecisionManager:: STRATEGY_UNANIMOUS , $ this ->getVoters (1 , 1 , 0 ), false , true , false ),
105
105
106
- array (' unanimous ' , $ this ->getVoters (0 , 0 , 2 ), false , true , false ),
107
- array (' unanimous ' , $ this ->getVoters (0 , 0 , 2 ), true , true , true ),
106
+ array (AccessDecisionManager:: STRATEGY_UNANIMOUS , $ this ->getVoters (0 , 0 , 2 ), false , true , false ),
107
+ array (AccessDecisionManager:: STRATEGY_UNANIMOUS , $ this ->getVoters (0 , 0 , 2 ), true , true , true ),
108
108
);
109
109
}
110
110
0 commit comments