Add constraints to image.settings and mark it fully validatable
3 open threads
Closes #3425870
Merge request reports
Activity
added 1 commit
- 115afbfd - Define the Image constraint in ConstraintManager
13 13 14 14 protected static $modules = ['image']; 15 15 16 /** 17 * {@inheritdoc} 18 */ 19 protected static $configSchemaCheckerExclusions = [ 20 // The schema of `image.settings` requires that the `preview_image` value 21 // be a file that actually exists, but that won't be the case in this test. 22 // Therefore, exclude `image.settings` from the schema check; we still 23 // assert that the expected value is migrated. 24 'image.settings', 25 ]; changed this line in version 11 of the diff
- Resolved by Adam G-H
added 185 commits
-
6ba4309b...fe3aa496 - 184 commits from branch
project:11.x
- f2bf0d3f - Merge branch '11.x' into 3425870-validation-image.settings
-
6ba4309b...fe3aa496 - 184 commits from branch
added 1 commit
- 7ba61fa3 - Test that preview_image is validated as an image
87 87 88 88 image.settings: 89 89 type: config_object 90 constraints: 91 FullyValidatable: ~ 90 92 mapping: 91 93 preview_image: 92 94 type: string 93 95 label: 'Preview image' 96 constraints: 97 NotBlank: [] 98 # We need to use Symfony's Image constraint because it will accept a file 99 # path as a string, whereas the File module's FileIsImage constraint expects 100 # a full file entity. 101 Image: [] 60 60 // Enable saving the logs and set the post migration admin user name. 61 61 $this->outputLogs = TRUE; 62 62 $this->migratedAdminUserName = 'admin'; 63 $this->expectedLoggedErrors = 27; 63 $this->expectedLoggedErrors = 29; changed this line in version 11 of the diff
Please register or sign in to reply