Skip to content

Commit 7f35988

Browse files
committedMar 24, 2016
fix mock
1 parent d2817d2 commit 7f35988

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎tests/Validation/ValidationValidatorTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1627,7 +1627,7 @@ public function testValidateMimetypes()
16271627
$uploadedFile = [__FILE__, '', null, null, null, true];
16281628

16291629
$file = $this->getMock('Symfony\Component\HttpFoundation\File\UploadedFile', ['guessExtension'], $uploadedFile);
1630-
$file->expects($this->any())->method('validateMimetypes')->will($this->returnValue('php'));
1630+
$file->expects($this->any())->method('guessExtension')->will($this->returnValue('php'));
16311631
$v = new Validator($trans, [], ['x' => 'mimetypes:text/x-php']);
16321632
$v->setFiles(['x' => $file]);
16331633
$this->assertTrue($v->passes());

0 commit comments

Comments
 (0)
Please sign in to comment.