@@ -205,14 +205,6 @@ public function testValidateIsNotValidFile()
205205 ->method ('getStoreLabel ' )
206206 ->willReturn ('File Input Field Label ' );
207207
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-
216208 $ this ->fileProcessorMock ->expects ($ this ->once ())
217209 ->method ('isExist ' )
218210 ->with (FileProcessor::TMP_DIR . '/ ' . $ value ['tmp_name ' ])
@@ -250,14 +242,6 @@ public function testValidate()
250242 ->method ('getStoreLabel ' )
251243 ->willReturn ('File Input Field Label ' );
252244
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-
261245 $ this ->fileProcessorMock ->expects ($ this ->once ())
262246 ->method ('isExist ' )
263247 ->with (FileProcessor::TMP_DIR . '/ ' . $ value ['name ' ])
@@ -316,14 +300,6 @@ public function testValidateMaxFileSize()
316300 ->method ('getValidationRules ' )
317301 ->willReturn ([$ validationRuleMock ]);
318302
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-
327303 $ this ->fileProcessorMock ->expects ($ this ->once ())
328304 ->method ('isExist ' )
329305 ->with (FileProcessor::TMP_DIR . '/ ' . $ value ['name ' ])
@@ -381,14 +357,6 @@ public function testValidateMaxImageWidth()
381357 ->method ('getValidationRules ' )
382358 ->willReturn ([$ validationRuleMock ]);
383359
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-
392360 $ this ->fileProcessorMock ->expects ($ this ->once ())
393361 ->method ('isExist ' )
394362 ->with (FileProcessor::TMP_DIR . '/ ' . $ value ['name ' ])
@@ -446,14 +414,6 @@ public function testValidateMaxImageHeight()
446414 ->method ('getValidationRules ' )
447415 ->willReturn ([$ validationRuleMock ]);
448416
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-
457417 $ this ->fileProcessorMock ->expects ($ this ->once ())
458418 ->method ('isExist ' )
459419 ->with (FileProcessor::TMP_DIR . '/ ' . $ value ['name ' ])
0 commit comments