Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
31 | public function testExtendedField() |
||
32 | { |
||
33 | |||
34 | $imageField = new CustomImageUploadField('testImageField'); |
||
35 | $this->assertEquals($imageField->getValidator()->getAllowedMaxFileSize(), 512000); |
||
36 | |||
37 | Config::inst()->update('CustomImageUploadField', 'max_upload', 256000); |
||
38 | $imageField2 = new CustomImageUploadField('testImageField2'); |
||
39 | $this->assertEquals($imageField2->getValidator()->getAllowedMaxFileSize(), 256000); |
||
40 | |||
41 | } |
||
42 | |||
57 |