1 | <?php |
||
6 | use Dynamic\ImageUpload\Tests\Field\CustomImageUploadField; |
||
7 | use SilverStripe\AssetAdmin\Forms\UploadField; |
||
|
|||
8 | use SilverStripe\Core\Config\Config; |
||
9 | use SilverStripe\Core\Convert; |
||
10 | use SilverStripe\Dev\SapphireTest; |
||
11 | |||
12 | /** |
||
13 | * Class ImageUploadFieldTest |
||
14 | */ |
||
15 | class ImageUploadFieldTest extends SapphireTest |
||
16 | { |
||
17 | |||
18 | /** |
||
19 | * |
||
20 | */ |
||
21 | public function test__construct() |
||
22 | { |
||
23 | $field = ImageUploadField::create('Image'); |
||
24 | $this->assertInstanceOf(UploadField::class, $field); |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * |
||
29 | */ |
||
30 | public function testMaxUpload() |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * |
||
39 | */ |
||
40 | public function testINIUploadLimitCheck() |
||
53 | } |
||
54 | |||
55 | /** |
||
56 | * |
||
57 | */ |
||
58 | public function testExtendedField() |
||
59 | { |
||
60 | |||
61 | $imageField = CustomImageUploadField::create('testImageField'); |
||
62 | $this->assertEquals($imageField->getValidator()->getAllowedMaxFileSize(), 512000); |
||
71 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths