@@ -83,9 +83,11 @@ protected function setUp()
83
83
* @param string $mode
84
84
* @param int $scdOnDemand
85
85
* @param array $locales
86
+ * @return void
87
+ *
86
88
* @dataProvider getFullLocalesDataProvider
87
89
*/
88
- public function testGetOptionLocalesFull ($ mode , $ scdOnDemand , $ locales )
90
+ public function testGetOptionLocalesFull (string $ mode , int $ scdOnDemand , array $ locales ): void
89
91
{
90
92
$ this ->localeListsMock ->expects ($ this ->once ())
91
93
->method ('getOptionLocales ' )
@@ -100,9 +102,11 @@ public function testGetOptionLocalesFull($mode, $scdOnDemand, $locales)
100
102
* @param string $mode
101
103
* @param int $scdOnDemand
102
104
* @param array $locales
105
+ * @return void
106
+ *
103
107
* @dataProvider getFullLocalesDataProvider
104
108
*/
105
- public function testGetTranslatedOptionLocalesFull ($ mode , $ scdOnDemand , $ locales )
109
+ public function testGetTranslatedOptionLocalesFull (string $ mode , int $ scdOnDemand , array $ locales ): void
106
110
{
107
111
$ this ->localeListsMock ->expects ($ this ->once ())
108
112
->method ('getTranslatedOptionLocales ' )
@@ -119,10 +123,17 @@ public function testGetTranslatedOptionLocalesFull($mode, $scdOnDemand, $locales
119
123
* @param array $locales
120
124
* @param array $expectedLocales
121
125
* @param array $deployedCodes
126
+ * @return void
127
+ *
122
128
* @dataProvider getLimitedLocalesDataProvider
123
129
*/
124
- public function testGetOptionLocalesLimited ($ mode , $ scdOnDemand , $ locales , $ expectedLocales , $ deployedCodes )
125
- {
130
+ public function testGetOptionLocalesLimited (
131
+ string $ mode ,
132
+ int $ scdOnDemand ,
133
+ array $ locales ,
134
+ array $ expectedLocales ,
135
+ array $ deployedCodes
136
+ ): void {
126
137
$ this ->localeListsMock ->expects ($ this ->once ())
127
138
->method ('getOptionLocales ' )
128
139
->willReturn ($ locales );
@@ -138,11 +149,17 @@ public function testGetOptionLocalesLimited($mode, $scdOnDemand, $locales, $expe
138
149
* @param array $locales
139
150
* @param array $expectedLocales
140
151
* @param array $deployedCodes
152
+ * @return void
153
+ *
141
154
* @dataProvider getLimitedLocalesDataProvider
142
155
*/
143
- public function testGetTranslatedOptionLocalesLimited ($ mode , $ scdOnDemand , $ locales ,
144
- $ expectedLocales , $ deployedCodes )
145
- {
156
+ public function testGetTranslatedOptionLocalesLimited (
157
+ string $ mode ,
158
+ int $ scdOnDemand ,
159
+ array $ locales ,
160
+ array $ expectedLocales ,
161
+ array $ deployedCodes
162
+ ): void {
146
163
$ this ->localeListsMock ->expects ($ this ->once ())
147
164
->method ('getTranslatedOptionLocales ' )
148
165
->willReturn ($ locales );
@@ -153,12 +170,12 @@ public function testGetTranslatedOptionLocalesLimited($mode, $scdOnDemand, $loca
153
170
}
154
171
155
172
/**
156
- * @param $mode
173
+ * @param string $mode
157
174
* @param int $scdOnDemand
158
- * @param $deployedCodes
175
+ * @param array $deployedCodes
159
176
* @return void
160
177
*/
161
- private function prepareGetLocalesLimited ($ mode , $ scdOnDemand , $ deployedCodes )
178
+ private function prepareGetLocalesLimited (string $ mode , int $ scdOnDemand , $ deployedCodes ): void
162
179
{
163
180
$ this ->stateMock ->expects ($ this ->once ())
164
181
->method ('getMode ' )
@@ -188,11 +205,11 @@ private function prepareGetLocalesLimited($mode, $scdOnDemand, $deployedCodes)
188
205
}
189
206
190
207
/**
191
- * @param $mode
208
+ * @param string $mode
192
209
* @param int $scdOnDemand
193
210
* @return void
194
211
*/
195
- private function prepareGetLocalesFull ($ mode , $ scdOnDemand )
212
+ private function prepareGetLocalesFull (string $ mode , int $ scdOnDemand ): void
196
213
{
197
214
$ this ->stateMock ->expects ($ this ->once ())
198
215
->method ('getMode ' )
@@ -209,7 +226,7 @@ private function prepareGetLocalesFull($mode, $scdOnDemand)
209
226
/**
210
227
* @return array
211
228
*/
212
- public function getFullLocalesDataProvider ()
229
+ public function getFullLocalesDataProvider (): array
213
230
{
214
231
$ deLocale = [
215
232
'value ' => 'de_DE ' ,
@@ -252,7 +269,7 @@ public function getFullLocalesDataProvider()
252
269
/**
253
270
* @return array
254
271
*/
255
- public function getLimitedLocalesDataProvider ()
272
+ public function getLimitedLocalesDataProvider (): array
256
273
{
257
274
$ deLocale = [
258
275
'value ' => 'de_DE ' ,
0 commit comments