diff --git a/core/modules/image/config/install/image.style.wide.yml b/core/modules/image/config/install/image.style.wide.yml index e69de29bb2..ede2f793f9 100644 --- a/core/modules/image/config/install/image.style.wide.yml +++ b/core/modules/image/config/install/image.style.wide.yml @@ -0,0 +1,14 @@ +langcode: en +status: true +dependencies: { } +name: wide +label: 'Wide (1090)' +effects: + 09959c15-59ce-4f6d-90df-e2d7cf32bce5: + uuid: 09959c15-59ce-4f6d-90df-e2d7cf32bce5 + id: image_scale + weight: 1 + data: + width: 1090 + height: null + upscale: false diff --git a/core/modules/image/tests/src/Functional/ImageStyleDeleteTest.php b/core/modules/image/tests/src/Functional/ImageStyleDeleteTest.php index c6eb941ea1..b95cbf8c61 100644 --- a/core/modules/image/tests/src/Functional/ImageStyleDeleteTest.php +++ b/core/modules/image/tests/src/Functional/ImageStyleDeleteTest.php @@ -73,6 +73,15 @@ public function testDelete() { $this->assertNotNull($widget = $form_display->getComponent('foo')); $this->assertIdentical($widget['settings']['preview_image_style'], ''); + $this->drupalGet('admin/config/media/image-styles/manage/wide/delete'); + // Checks that the 'replacement' select element is displayed. + $this->assertFieldByName('replacement'); + // Checks that UI messages are correct. + $this->assertRaw(t('If this style is in use on the site, you may select another style to replace it. All images that have been generated for this style will be permanently deleted. If no replacement style is selected, the dependent configurations might need manual reconfiguration.')); + $this->assertNoRaw(t('All images that have been generated for this style will be permanently deleted. The dependent configurations might need manual reconfiguration.')); + // Delete 'wide' image style. Provide no replacement. + $this->drupalPostForm(NULL, [], t('Delete')); + // Now, there's only one image style configured on the system: 'large'. $this->drupalGet('admin/config/media/image-styles/manage/large/delete'); // Checks that the 'replacement' select element is not displayed. diff --git a/core/modules/migrate_drupal_ui/tests/src/Functional/d6/Upgrade6Test.php b/core/modules/migrate_drupal_ui/tests/src/Functional/d6/Upgrade6Test.php index 09e5fe815b..bb290dd04e 100644 --- a/core/modules/migrate_drupal_ui/tests/src/Functional/d6/Upgrade6Test.php +++ b/core/modules/migrate_drupal_ui/tests/src/Functional/d6/Upgrade6Test.php @@ -87,7 +87,7 @@ protected function getEntityCounts() { 'field_storage_config' => 66, 'file' => 7, 'filter_format' => 7, - 'image_style' => 5, + 'image_style' => 6, 'language_content_settings' => 15, 'node' => 18, // The 'book' module provides the 'book' node type, and the migration diff --git a/core/modules/migrate_drupal_ui/tests/src/Functional/d7/Upgrade7Test.php b/core/modules/migrate_drupal_ui/tests/src/Functional/d7/Upgrade7Test.php index 373ddd8efb..c0396fbbae 100644 --- a/core/modules/migrate_drupal_ui/tests/src/Functional/d7/Upgrade7Test.php +++ b/core/modules/migrate_drupal_ui/tests/src/Functional/d7/Upgrade7Test.php @@ -91,7 +91,7 @@ protected function getEntityCounts() { 'field_storage_config' => 60, 'file' => 3, 'filter_format' => 7, - 'image_style' => 6, + 'image_style' => 7, 'language_content_settings' => 20, 'node' => 7, 'node_type' => 7,