diff --git a/lib/Cake/Test/Case/Utility/ValidationTest.php b/lib/Cake/Test/Case/Utility/ValidationTest.php index 07d03c6e8..9691a8aa0 100644 --- a/lib/Cake/Test/Case/Utility/ValidationTest.php +++ b/lib/Cake/Test/Case/Utility/ValidationTest.php @@ -2547,6 +2547,19 @@ class ValidationTest extends CakeTestCase { 'maxSize' => 100 ); $this->assertFalse(Validation::uploadedFile($file, $options), 'Too big'); + $options = array( + 'minSize' => 100, + ); + $this->assertTrue(Validation::uploadedFile($file, $options)); + $options = array( + 'maxSize' => 500, + ); + $this->assertTrue(Validation::uploadedFile($file, $options)); + $options = array( + 'minSize' => 100, + 'maxSize' => 500 + ); + $this->assertTrue(Validation::uploadedFile($file, $options)); } /**