Loading core/misc/cspell/dictionary.txt +1 −0 Original line number Diff line number Diff line Loading @@ -1418,6 +1418,7 @@ webheads webhosting webmention webmozart webp webroot webservers webtest Loading core/modules/image/src/Plugin/Field/FieldType/ImageItem.php +1 −1 Original line number Diff line number Diff line Loading @@ -68,7 +68,7 @@ public static function defaultStorageSettings() { */ public static function defaultFieldSettings() { $settings = [ 'file_extensions' => 'png gif jpg jpeg', 'file_extensions' => 'png gif jpg jpeg webp', 'alt_field' => 1, 'alt_field_required' => 1, 'title_field' => 0, Loading core/modules/image/tests/src/Functional/ImageFieldDefaultImagesTest.php +1 −1 Original line number Diff line number Diff line Loading @@ -224,7 +224,7 @@ public function testDefaultImages() { $non_image = $this->drupalGetTestFiles('text'); $this->submitForm(['files[settings_default_image_uuid]' => \Drupal::service('file_system')->realpath($non_image[0]->uri)], 'Upload'); $this->assertSession()->statusMessageContains('The specified file text-0.txt could not be uploaded.', 'error'); $this->assertSession()->statusMessageContains('Only files with the following extensions are allowed: png gif jpg jpeg.', 'error'); $this->assertSession()->statusMessageContains('Only files with the following extensions are allowed: png gif jpg jpeg webp.', 'error'); // Confirm the default image is shown on the node form. $file = File::load($default_images['field_storage_new']->id()); Loading core/modules/image/tests/src/Functional/ImageFieldWidgetTest.php +3 −3 Original line number Diff line number Diff line Loading @@ -38,14 +38,14 @@ public function testWidgetElement() { $this->assertSession()->pageTextNotContains('Image test on [site:name]'); // Check for allowed image file extensions - default. $this->assertSession()->pageTextContains('Allowed types: png gif jpg jpeg.'); $this->assertSession()->pageTextContains('Allowed types: png gif jpg jpeg webp.'); // Try adding to the field config an unsupported extension, should not // appear in the allowed types. $field_config = FieldConfig::loadByName('node', 'article', $field_name); $field_config->setSetting('file_extensions', 'png gif jpg jpeg tiff')->save(); $field_config->setSetting('file_extensions', 'png gif jpg jpeg webp tiff')->save(); $this->drupalGet('node/add/article'); $this->assertSession()->pageTextContains('Allowed types: png gif jpg jpeg.'); $this->assertSession()->pageTextContains('Allowed types: png gif jpg jpeg webp.'); // Add a supported extension and remove some supported ones, we should see // the intersect of those entered in field config with those supported. Loading core/modules/inline_form_errors/tests/src/Functional/FormErrorHandlerFileUploadTest.php +1 −1 Original line number Diff line number Diff line Loading @@ -54,7 +54,7 @@ protected function setUp(): void { 'entity_type' => 'node', 'bundle' => 'page', 'required' => TRUE, 'settings' => ['file_extensions' => 'png gif jpg jpeg'], 'settings' => ['file_extensions' => 'png gif jpg jpeg webp'], ])->save(); EntityFormDisplay::create([ Loading Loading
core/misc/cspell/dictionary.txt +1 −0 Original line number Diff line number Diff line Loading @@ -1418,6 +1418,7 @@ webheads webhosting webmention webmozart webp webroot webservers webtest Loading
core/modules/image/src/Plugin/Field/FieldType/ImageItem.php +1 −1 Original line number Diff line number Diff line Loading @@ -68,7 +68,7 @@ public static function defaultStorageSettings() { */ public static function defaultFieldSettings() { $settings = [ 'file_extensions' => 'png gif jpg jpeg', 'file_extensions' => 'png gif jpg jpeg webp', 'alt_field' => 1, 'alt_field_required' => 1, 'title_field' => 0, Loading
core/modules/image/tests/src/Functional/ImageFieldDefaultImagesTest.php +1 −1 Original line number Diff line number Diff line Loading @@ -224,7 +224,7 @@ public function testDefaultImages() { $non_image = $this->drupalGetTestFiles('text'); $this->submitForm(['files[settings_default_image_uuid]' => \Drupal::service('file_system')->realpath($non_image[0]->uri)], 'Upload'); $this->assertSession()->statusMessageContains('The specified file text-0.txt could not be uploaded.', 'error'); $this->assertSession()->statusMessageContains('Only files with the following extensions are allowed: png gif jpg jpeg.', 'error'); $this->assertSession()->statusMessageContains('Only files with the following extensions are allowed: png gif jpg jpeg webp.', 'error'); // Confirm the default image is shown on the node form. $file = File::load($default_images['field_storage_new']->id()); Loading
core/modules/image/tests/src/Functional/ImageFieldWidgetTest.php +3 −3 Original line number Diff line number Diff line Loading @@ -38,14 +38,14 @@ public function testWidgetElement() { $this->assertSession()->pageTextNotContains('Image test on [site:name]'); // Check for allowed image file extensions - default. $this->assertSession()->pageTextContains('Allowed types: png gif jpg jpeg.'); $this->assertSession()->pageTextContains('Allowed types: png gif jpg jpeg webp.'); // Try adding to the field config an unsupported extension, should not // appear in the allowed types. $field_config = FieldConfig::loadByName('node', 'article', $field_name); $field_config->setSetting('file_extensions', 'png gif jpg jpeg tiff')->save(); $field_config->setSetting('file_extensions', 'png gif jpg jpeg webp tiff')->save(); $this->drupalGet('node/add/article'); $this->assertSession()->pageTextContains('Allowed types: png gif jpg jpeg.'); $this->assertSession()->pageTextContains('Allowed types: png gif jpg jpeg webp.'); // Add a supported extension and remove some supported ones, we should see // the intersect of those entered in field config with those supported. Loading
core/modules/inline_form_errors/tests/src/Functional/FormErrorHandlerFileUploadTest.php +1 −1 Original line number Diff line number Diff line Loading @@ -54,7 +54,7 @@ protected function setUp(): void { 'entity_type' => 'node', 'bundle' => 'page', 'required' => TRUE, 'settings' => ['file_extensions' => 'png gif jpg jpeg'], 'settings' => ['file_extensions' => 'png gif jpg jpeg webp'], ])->save(); EntityFormDisplay::create([ Loading