@@ -205,14 +205,6 @@ public function testValidateIsNotValidFile()
205
205
->method ('getStoreLabel ' )
206
206
->willReturn ('File Input Field Label ' );
207
207
208
- $ this ->fileProcessorMock ->expects ($ this ->once ())
209
- ->method ('getStat ' )
210
- ->with ($ value ['tmp_name ' ])
211
- ->willReturn ([
212
- 'extension ' => 'txt ' ,
213
- 'basename ' => 'tmp_file.txt ' ,
214
- ]);
215
-
216
208
$ this ->fileProcessorMock ->expects ($ this ->once ())
217
209
->method ('isExist ' )
218
210
->with (FileProcessor::TMP_DIR . '/ ' . $ value ['tmp_name ' ])
@@ -250,14 +242,6 @@ public function testValidate()
250
242
->method ('getStoreLabel ' )
251
243
->willReturn ('File Input Field Label ' );
252
244
253
- $ this ->fileProcessorMock ->expects ($ this ->once ())
254
- ->method ('getStat ' )
255
- ->with ($ value ['tmp_name ' ])
256
- ->willReturn ([
257
- 'extension ' => 'gif ' ,
258
- 'basename ' => 'logo.gif ' ,
259
- ]);
260
-
261
245
$ this ->fileProcessorMock ->expects ($ this ->once ())
262
246
->method ('isExist ' )
263
247
->with (FileProcessor::TMP_DIR . '/ ' . $ value ['name ' ])
@@ -316,14 +300,6 @@ public function testValidateMaxFileSize()
316
300
->method ('getValidationRules ' )
317
301
->willReturn ([$ validationRuleMock ]);
318
302
319
- $ this ->fileProcessorMock ->expects ($ this ->once ())
320
- ->method ('getStat ' )
321
- ->with ($ value ['tmp_name ' ])
322
- ->willReturn ([
323
- 'extension ' => 'gif ' ,
324
- 'basename ' => 'logo.gif ' ,
325
- ]);
326
-
327
303
$ this ->fileProcessorMock ->expects ($ this ->once ())
328
304
->method ('isExist ' )
329
305
->with (FileProcessor::TMP_DIR . '/ ' . $ value ['name ' ])
@@ -381,14 +357,6 @@ public function testValidateMaxImageWidth()
381
357
->method ('getValidationRules ' )
382
358
->willReturn ([$ validationRuleMock ]);
383
359
384
- $ this ->fileProcessorMock ->expects ($ this ->once ())
385
- ->method ('getStat ' )
386
- ->with ($ value ['tmp_name ' ])
387
- ->willReturn ([
388
- 'extension ' => 'gif ' ,
389
- 'basename ' => 'logo.gif ' ,
390
- ]);
391
-
392
360
$ this ->fileProcessorMock ->expects ($ this ->once ())
393
361
->method ('isExist ' )
394
362
->with (FileProcessor::TMP_DIR . '/ ' . $ value ['name ' ])
@@ -446,14 +414,6 @@ public function testValidateMaxImageHeight()
446
414
->method ('getValidationRules ' )
447
415
->willReturn ([$ validationRuleMock ]);
448
416
449
- $ this ->fileProcessorMock ->expects ($ this ->once ())
450
- ->method ('getStat ' )
451
- ->with ($ value ['tmp_name ' ])
452
- ->willReturn ([
453
- 'extension ' => 'gif ' ,
454
- 'basename ' => 'logo.gif ' ,
455
- ]);
456
-
457
417
$ this ->fileProcessorMock ->expects ($ this ->once ())
458
418
->method ('isExist ' )
459
419
->with (FileProcessor::TMP_DIR . '/ ' . $ value ['name ' ])
0 commit comments