@@ -73,6 +73,7 @@ protected function setUp()
73
73
* @param \PHPUnit_Framework_MockObject_Matcher_InvokedCount $expectsAfterLoad
74
74
* @param string $expectsValue
75
75
* @param string $className
76
+ * @param string $value
76
77
* @dataProvider processDataProvider
77
78
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
78
79
*/
@@ -87,11 +88,12 @@ public function testProcess(
87
88
$ expectsSetValue ,
88
89
$ expectsAfterLoad ,
89
90
$ expectsValue ,
90
- $ className
91
- ) {
91
+ $ className ,
92
+ $ value
93
+ )
94
+ {
92
95
$ scope = 'someScope ' ;
93
96
$ scopeCode = 'someScopeCode ' ;
94
- $ value = 'someValue ' ;
95
97
$ path = 'some/config/path ' ;
96
98
$ oldConfigScope = 'oldConfigScope ' ;
97
99
@@ -165,6 +167,7 @@ public function testProcess(
165
167
166
168
/**
167
169
* @return array
170
+ * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
168
171
*/
169
172
public function processDataProvider ()
170
173
{
@@ -181,7 +184,7 @@ public function processDataProvider()
181
184
'expectsAfterLoad ' => $ this ->once (),
182
185
'expectsValue ' => 'someValue ' ,
183
186
'className ' => Value::class,
184
-
187
+ ' value ' => ' someValue '
185
188
],
186
189
[
187
190
'hasBackendModel ' => false ,
@@ -194,7 +197,8 @@ public function processDataProvider()
194
197
'expectsSetValue ' => $ this ->once (),
195
198
'expectsAfterLoad ' => $ this ->once (),
196
199
'expectsValue ' => 'someValue ' ,
197
- 'className ' => Value::class
200
+ 'className ' => Value::class,
201
+ 'value ' => 'someValue '
198
202
],
199
203
[
200
204
'hasBackendModel ' => true ,
@@ -208,6 +212,35 @@ public function processDataProvider()
208
212
'expectsAfterLoad ' => $ this ->never (),
209
213
'expectsValue ' => ValueProcessor::SAFE_PLACEHOLDER ,
210
214
'className ' => Encrypted::class,
215
+ 'value ' => 'someValue '
216
+ ],
217
+ [
218
+ 'hasBackendModel ' => true ,
219
+ 'expectsGetBackendModel ' => $ this ->once (),
220
+ 'expectsCreate ' => $ this ->never (),
221
+ 'expectsGetValue ' => $ this ->once (),
222
+ 'expectsSetPath ' => $ this ->once (),
223
+ 'expectsSetScope ' => $ this ->once (),
224
+ 'expectsSetScopeId ' => $ this ->once (),
225
+ 'expectsSetValue ' => $ this ->once (),
226
+ 'expectsAfterLoad ' => $ this ->once (),
227
+ 'expectsValue ' => null ,
228
+ 'className ' => Value::class,
229
+ 'value ' => null
230
+ ],
231
+ [
232
+ 'hasBackendModel ' => true ,
233
+ 'expectsGetBackendModel ' => $ this ->once (),
234
+ 'expectsCreate ' => $ this ->never (),
235
+ 'expectsGetValue ' => $ this ->never (),
236
+ 'expectsSetPath ' => $ this ->never (),
237
+ 'expectsSetScope ' => $ this ->never (),
238
+ 'expectsSetScopeId ' => $ this ->never (),
239
+ 'expectsSetValue ' => $ this ->never (),
240
+ 'expectsAfterLoad ' => $ this ->never (),
241
+ 'expectsValue ' => null ,
242
+ 'className ' => Encrypted::class,
243
+ 'value ' => null
211
244
],
212
245
];
213
246
}
0 commit comments