diff --git a/tests/Validation/ValidationValidatorTest.php b/tests/Validation/ValidationValidatorTest.php index 2dc646ad8950..2c8bb99aef08 100755 --- a/tests/Validation/ValidationValidatorTest.php +++ b/tests/Validation/ValidationValidatorTest.php @@ -4879,7 +4879,8 @@ public function testValidateImage() $file8 = $this->getMockBuilder(UploadedFile::class)->onlyMethods(['guessExtension', 'getClientOriginalExtension'])->setConstructorArgs($uploadedFile)->getMock(); $file8->expects($this->any())->method('guessExtension')->willReturn('avif'); - $file8->expects($this->any())->method('getClientOriginalExtension')->willReturn('avif'); $v = new Validator($trans, ['x' => $file8], ['x' => 'Image']); + $file8->expects($this->any())->method('getClientOriginalExtension')->willReturn('avif'); + $v = new Validator($trans, ['x' => $file8], ['x' => 'Image']); $this->assertTrue($v->passes()); }