Skip to content
Snippets Groups Projects
Verified Commit ed4655e3 authored by Lee Rowlands's avatar Lee Rowlands
Browse files

Issue #3153009 by himanshu_sindhwani, asmita26, ambuj_gupta, mherchel: Create...

Issue #3153009 by himanshu_sindhwani, asmita26, ambuj_gupta, mherchel: Create "Wide" image style for standard profile
parent 0551c860
No related branches found
No related tags found
No related merge requests found
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
......@@ -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.
......
......@@ -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
......
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment