diff --git a/core/modules/image/lib/Drupal/image/Tests/ImageAdminStylesTest.php b/core/modules/image/lib/Drupal/image/Tests/ImageAdminStylesTest.php index 3245e54..6f94b3b 100644 --- a/core/modules/image/lib/Drupal/image/Tests/ImageAdminStylesTest.php +++ b/core/modules/image/lib/Drupal/image/Tests/ImageAdminStylesTest.php @@ -273,5 +273,18 @@ class ImageAdminStylesTest extends ImageFieldTestBase { $this->assertText(t('Scale and crop 360x240')); // Check the previous effect is not also retained on this style after editing. $this->assertNoText(t('Scale and crop 300x200')); + // Add scale effect, edit effect, add new effect that matches original scale + // effect, check that both effects still exist + $this->drupalGet('admin/config/media/image-styles/add'); + $this->drupalPost(NULL, array('name' => 'test_style_scale_edit_scale'), t('Create new style')); + $this->drupalPost(NULL, array('new' => 'image_scale'), t('Add')); + $this->drupalPost(NULL, array('data[width]' => '12', 'data[height]' => '19'), t('Add effect')); + $this->clickLink(t('edit')); + $this->drupalPost(NULL, array('data[width]' => '24', 'data[height]' => '19'), t('Update effect')); + $this->drupalPost(NULL, array('new' => 'image_scale'), t('Add')); + $this->drupalPost(NULL, array('data[width]' => '12', 'data[height]' => '19'), t('Add effect')); + $this->assertText(t('Scale 24x19')); + $this->assertText(t('Scale 12x19')); + } }